Skip to content
Snippets Groups Projects
Commit 76222877 authored by tpylak's avatar tpylak
Browse files

LMS-1709 test instance: scripts

SVN: 17565
parent b269ddfe
No related branches found
No related tags found
No related merge requests found
...@@ -10,13 +10,15 @@ fi ...@@ -10,13 +10,15 @@ fi
source $BASE/env source $BASE/env
ROOT_DIR=$BASE/../servers ROOT_DIR=$BASE/../servers
CONFIG=$BASE/../config BACKUP_DIR=$BASE/../backup
BACKUP_DIR=$BASE/../old
mkdir -p $ROOT_DIR
mkdir -p $BACKUP_DIR
echo Restoring empty screening database echo Restoring empty screening database
USER=`whoami` USER=`whoami`
psql -U postgres -c "create database $OPENBIS_DB with owner $USER template = template0 encoding = 'UNICODE'" psql -U postgres -c "create database $OPENBIS_DB with owner $USER template = template0 encoding = 'UNICODE'"
psql -U $USER -d $OPENBIS_DB -f $CONFIG/empty-screening-database.sql psql -U $USER -d $OPENBIS_DB -f $ROOT_DIR/empty-screening-database.sql
echo Installing openBIS Datastore Server echo Installing openBIS Datastore Server
unzip $ROOT_DIR/datastore*.zip unzip $ROOT_DIR/datastore*.zip
...@@ -25,8 +27,6 @@ echo Installing openBIS Application Server ...@@ -25,8 +27,6 @@ echo Installing openBIS Application Server
unzip $ROOT_DIR/openBIS-*.zip -d $ROOT_DIR unzip $ROOT_DIR/openBIS-*.zip -d $ROOT_DIR
$ROOT_DIR/openBIS-server/install.sh $ROOT_DIR/openBIS-server $ROOT_DIR/openBIS-server/install.sh $ROOT_DIR/openBIS-server
$BASE/restore-config-from-backup.sh $CONFIG
mv $ROOT_DIR/*.zip $BACKUP_DIR/ mv $ROOT_DIR/*.zip $BACKUP_DIR/
$BASE/bisup.sh $BASE/bisup.sh
sleep 20 sleep 20
......
...@@ -7,7 +7,7 @@ if [ ${BASE#/} == ${BASE} ]; then ...@@ -7,7 +7,7 @@ if [ ${BASE#/} == ${BASE} ]; then
BASE="`pwd`/${BASE}" BASE="`pwd`/${BASE}"
fi fi
source $BASE/env alias rm='rm'
SVN=svncisd.ethz.ch/repos/cisd/screening/trunk/dist/admin SVN=svncisd.ethz.ch/repos/cisd/screening/trunk/dist/admin
cd $BASE cd $BASE
......
...@@ -10,7 +10,7 @@ fi ...@@ -10,7 +10,7 @@ fi
source $BASE/env source $BASE/env
ROOT_DIR=$BASE/../servers ROOT_DIR=$BASE/../servers
BACKUP_DIR=$BASE/../old BACKUP_DIR=$BASE/../backup
$BASE/alldown.sh $BASE/alldown.sh
......
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