Skip to content

Commit 1772c38

Browse files
committed
Fix 'drop database' command
The 'drop database' command in restore.sh was using user ${DB_ROOTUSER} and has been changed to use ${DB_USER}.
1 parent 9ad3faf commit 1772c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/restore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ -z "${result}" ]; then
2525
echo "${MYNAME}: INFO: ${message}"
2626
else
2727
echo "${MYNAME}: deleting database ${DB_NAME}"
28-
result=$(psql --host=${DB_HOST} --dbname=postgres --username=${DB_ROOTUSER} --command="DROP DATABASE ${DB_NAME};")
28+
result=$(psql --host=${DB_HOST} --dbname=postgres --username=${DB_USER} --command="DROP DATABASE ${DB_NAME};")
2929
if [ "${result}" != "DROP DATABASE" ]; then
3030
message="Drop database command failed: ${result}"
3131
echo "${MYNAME}: FATAL: ${message}"

0 commit comments

Comments
 (0)