浏览代码

AMBARI-6987. Ambari upgrade. resource managemnt need refactoring in install-helper.py.->remove(vbrodetskyi)

Vitaly Brodetskyi 10 年之前
父节点
当前提交
40f1c4e8f3
共有 2 个文件被更改,包括 0 次插入10 次删除
  1. 0 7
      ambari-agent/conf/unix/install-helper.sh
  2. 0 3
      ambari-server/conf/unix/install-helper.sh

+ 0 - 7
ambari-agent/conf/unix/install-helper.sh

@@ -51,13 +51,6 @@ do_install(){
 }
 
 do_remove(){
-  if [ -d "$COMMON_DIR" ]; then  # common dir exists
-    rm -f "$COMMON_DIR"
-  fi
-
-  if [ -d "$RESOURCE_MANAGEMENT_DIR" ]; then  # resource_management dir exists
-    rm -f "$RESOURCE_MANAGEMENT_DIR"
-  fi
 
   if [ -f "$PYTHON_WRAPER_TARGET" ]; then
     rm -f "$PYTHON_WRAPER_TARGET"

+ 0 - 3
ambari-server/conf/unix/install-helper.sh

@@ -51,9 +51,6 @@ do_install(){
 
 do_remove(){
 
-  rm -rf "$COMMON_DIR"
-  rm -rf "$RESOURCE_MANAGEMENT_DIR"
-
   if [ -f "$PYTHON_WRAPER_TARGET" ]; then
     rm -f "$PYTHON_WRAPER_TARGET"
   fi