Skip to content
Snippets Groups Projects
Commit c72b5556 authored by kohleman's avatar kohleman
Browse files

- robust unaliasing wihtout error message even when there is no alias set

- quiet unzip
- no more copying try of the store located in the sprint dir (bad location)

SVN: 14586
parent 60fab10b
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ else ...@@ -33,8 +33,8 @@ else
fi fi
# Unalias rm and cp commands # Unalias rm and cp commands
unalias rm alias cp='cp'
unalias cp alias rm='rm'
if [ -e $SERVERS_PREV_VER ]; then if [ -e $SERVERS_PREV_VER ]; then
echo Stopping the components... echo Stopping the components...
...@@ -57,7 +57,7 @@ rm -f $SERVERS_DIR_ALIAS ...@@ -57,7 +57,7 @@ rm -f $SERVERS_DIR_ALIAS
mkdir $SERVERS_VER mkdir $SERVERS_VER
ln -s $SERVERS_VER $SERVERS_DIR_ALIAS ln -s $SERVERS_VER $SERVERS_DIR_ALIAS
cd $SERVERS_DIR_ALIAS cd $SERVERS_DIR_ALIAS
unzip ../openBIS-server*$VER* unzip -q ../openBIS-server*$VER*
cd openBIS-server cd openBIS-server
./install.sh --nostartup $PWD $CONFIG_DIR/service.properties $CONFIG_DIR/openbis.conf ./install.sh --nostartup $PWD $CONFIG_DIR/service.properties $CONFIG_DIR/openbis.conf
if [ -f $KEYSTORE ]; then if [ -f $KEYSTORE ]; then
...@@ -70,12 +70,12 @@ fi ...@@ -70,12 +70,12 @@ fi
echo Installing datastore server... echo Installing datastore server...
cd .. cd ..
unzip ../datastore_server*$VER* unzip -q ../datastore_server*$VER*
cd datastore_server cd datastore_server
cp -p $CONFIG_DIR/datastore_server-service.properties etc/service.properties cp -p $CONFIG_DIR/datastore_server-service.properties etc/service.properties
if [ -f $KEYSTORE ]; then if [ -f $KEYSTORE ]; then
cp -p $KEYSTORE etc/openBIS.keystore cp -p $KEYSTORE etc/openBIS.keystore
cp -Rf ~openbis/old/$SERVERS_PREV_VER/datastore_server/data/store/* data/store #cp -Rf ~openbis/old/$SERVERS_PREV_VER/datastore_server/data/store/* data/store
sed 's/-Djavax.net.ssl.trustStore=etc\/openBIS.keystore //g' datastore_server.sh > xxx sed 's/-Djavax.net.ssl.trustStore=etc\/openBIS.keystore //g' datastore_server.sh > xxx
mv -f xxx datastore_server.sh mv -f xxx datastore_server.sh
fi fi
...@@ -84,7 +84,7 @@ export JAVA_HOME=/usr ...@@ -84,7 +84,7 @@ export JAVA_HOME=/usr
#./datastore_server.sh start #./datastore_server.sh start
#echo Doing some cleaning... #echo Doing some cleaning...
cd cd ~openbis
mv -f *.zip old/ mv -f *.zip old/
rm -rf openbis rm -rf openbis
cd ~openbis/sprint/openBIS-server cd ~openbis/sprint/openBIS-server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment