Update benchmark and clientx scripts 39/4439/1
authorQiLiang <liangqi1@huawei.com>
Mon, 14 Dec 2015 13:12:45 +0000 (13:12 +0000)
committerQiLiang <liangqi1@huawei.com>
Mon, 14 Dec 2015 13:12:45 +0000 (13:12 +0000)
just to make xx_install.sh xx_uninstall.sh ... the same.

rewrite the scripts latter or delete duplicated code if needed.

Change-Id: I0bcb993ef5ad9a5abb6b2ed009c7e6ed1b29e1ce
JIRA:BOTTLENECK-24
Signed-off-by: QiLiang <liangqi1@huawei.com>
rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_uninstall.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT1_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT1_rubbos_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT1_rubbos_uninstall.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT2_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT2_rubbos_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT3_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT3_rubbos_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT4_install.sh
rubbos/rubbos_scripts/1-1-1/scripts/CLIENT4_rubbos_install.sh

index 7557854..e757112 100755 (executable)
@@ -12,4 +12,4 @@ fi
 
 tar xzf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
 
-echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME" 
+echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME"
index 4cec4ef..2a9a115 100755 (executable)
@@ -4,4 +4,4 @@ cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
 source set_bottlenecks_rubbos_env.sh
 
 rm -rf $JAVA_HOME
-#rm -rf $ELBA_TOP 
+#rm -rf $ELBA_TOP
index 3be98de..e757112 100755 (executable)
@@ -5,8 +5,11 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS CLIENT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
+mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
+
 tar xzf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
 
 echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME"
-
index 2b68416..098df71 100755 (executable)
@@ -5,7 +5,10 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
 mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
 
 # install RUBBoS
 tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP
index 00943e3..96a51df 100755 (executable)
@@ -7,4 +7,4 @@ cd $SYSSTAT_HOME
 sudo make uninstall
 sudo rm -rf $SYSSTAT_HOME
 rm -rf $RUBBOS_HOME
-rm -rf $ELBA_TOP
+#rm -rf $ELBA_TOP
index 3be98de..e757112 100755 (executable)
@@ -5,8 +5,11 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS CLIENT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
+mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
+
 tar xzf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
 
 echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME"
-
index 2b68416..098df71 100755 (executable)
@@ -5,7 +5,10 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
 mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
 
 # install RUBBoS
 tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP
index ec47699..e757112 100755 (executable)
@@ -5,6 +5,11 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS CLIENT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
+mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
+
 tar xzf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
 
 echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME"
index 2b68416..098df71 100755 (executable)
@@ -5,7 +5,10 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
 mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
 
 # install RUBBoS
 tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP
index 3be98de..e757112 100755 (executable)
@@ -5,8 +5,11 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS CLIENT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
+mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
+
 tar xzf $SOFTWARE_HOME/$JAVA_TARBALL --directory=$RUBBOS_APP
 
 echo "DONE INSTALLING RUBBOS CLIENT on $HOSTNAME"
-
index 2b68416..098df71 100755 (executable)
@@ -5,7 +5,10 @@ source set_bottlenecks_rubbos_env.sh
 
 echo "INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"
 
+if [ ! -d "$RUBBOS_APP" ]; then
 mkdir -p $RUBBOS_APP
+chmod 755 $RUBBOS_APP
+fi
 
 # install RUBBoS
 tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP