diff --git a/bin/ci-scripts/create_database.sh b/bin/ci-scripts/create_database.sh index 0c71194..879f1be 100755 --- a/bin/ci-scripts/create_database.sh +++ b/bin/ci-scripts/create_database.sh @@ -30,8 +30,8 @@ fi function create_database { # todo: remove this two line: - psql -w -h ${DBHOST} -c "DROP DATABASE IF EXISTS ${DBAPPNAME};" -U ${DBROOTUSER} - psql -w -h ${DBHOST} -c "DROP ROLE IF EXISTS ${DBAPPUSER};" -U ${DBROOTUSER} + #psql -w -h ${DBHOST} -c "DROP DATABASE IF EXISTS ${DBAPPNAME};" -U ${DBROOTUSER} + #psql -w -h ${DBHOST} -c "DROP ROLE IF EXISTS ${DBAPPUSER};" -U ${DBROOTUSER} userexist=$(psql -qt -w -h ${DBHOST} -U ${DBROOTUSER} -c "SELECT rolname FROM pg_catalog.pg_roles WHERE rolname = '${DBAPPUSER}';"|sed -e s/' '//g) if [ -z ${userexist} ]