From 1575f860d04e5ef4213ab61c919c328ba9214c40 Mon Sep 17 00:00:00 2001 From: DecaTec Date: Tue, 1 Jan 2019 15:54:34 +0100 Subject: [PATCH] Drop DB command PostgreSQL --- NextcloudRestore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index e57b998..69b4b00 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -125,7 +125,7 @@ echo "Dropping old Nextcloud DB..." mysql -h localhost -u "${dbUser}" -p"${dbPassword}" -e "DROP DATABASE ${nextcloudDatabase}" # PostgreSQL (uncomment if you are using PostgreSQL as Nextcloud database) -#PGPASSWORD="${dbPassword} psql -h localhost -U "${dbUser}" -d nextcloud -c "DROP DATABASE \"${nextcloudDatabase}\";" +#PGPASSWORD="${dbPassword}" psql -h localhost -U "${dbUser}" -d nextcloud -c "DROP DATABASE \"${nextcloudDatabase}\";" echo "Done" echo -- 2.34.1