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

LMS-1546 minor

SVN: 16741
parent e6d234fe
No related branches found
No related tags found
No related merge requests found
...@@ -384,7 +384,7 @@ function restore_database { ...@@ -384,7 +384,7 @@ function restore_database {
local db_file_path=$2 local db_file_path=$2
psql_cmd=`run_psql` psql_cmd=`run_psql`
$psql_cmd -U postgres -c "drop database $db_name" $psql_cmd -U postgres -c "drop database if exists $db_name"
$psql_cmd -U postgres -c "create database $db_name with owner $USER template = template0 encoding = 'UNICODE'" $psql_cmd -U postgres -c "create database $db_name with owner $USER template = template0 encoding = 'UNICODE'"
$psql_cmd -U $USER -d $db_name -f $db_file_path $psql_cmd -U $USER -d $db_name -f $db_file_path
} }
...@@ -402,12 +402,12 @@ function install_openbis_server { ...@@ -402,12 +402,12 @@ function install_openbis_server {
restore_database $DATABASE $TEMPLATE/$openbis_server_name/test_database.sql restore_database $DATABASE $TEMPLATE/$openbis_server_name/test_database.sql
if [ $install_openbis == "true" ]; then if [ $install_openbis == "true" ]; then
rm -fr $openbis_server_dir rm -fr $openbis_server_dir
copy_templates $openbis_server_name copy_templates $openbis_server_name
unzip -d $openbis_server_dir $INSTALL/openBIS*.zip unzip -d $openbis_server_dir $INSTALL/openBIS*.zip
$openbis_server_dir/openBIS-server/install.sh $PWD/$openbis_server_dir $openbis_server_dir/service.properties $openbis_server_dir/openbis.conf $openbis_server_dir/openBIS-server/install.sh $PWD/$openbis_server_dir $openbis_server_dir/service.properties $openbis_server_dir/openbis.conf
startup_openbis_server $openbis_server_dir startup_openbis_server $openbis_server_dir
wait_for_server wait_for_server
else else
copy_templates $openbis_server_name copy_templates $openbis_server_name
restart_openbis $openbis_server_dir restart_openbis $openbis_server_dir
......
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