Don't terminate the script if the pgsql database could not be deleted

This commit is contained in:
Thomas Müller 2014-09-12 22:41:22 +02:00
parent 1145529584
commit 6dfd1733bb

View file

@ -166,7 +166,7 @@ function execute_tests {
mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE $DATABASENAME"
fi
if [ "$1" == "pgsql" ] ; then
dropdb -U $DATABASEUSER $DATABASENAME
dropdb -U $DATABASEUSER $DATABASENAME || true
fi
if [ "$1" == "oci" ] ; then
echo "drop the database"