From: DecaTec Date: Tue, 1 Jan 2019 14:54:34 +0000 (+0100) Subject: Drop DB command PostgreSQL X-Git-Tag: v1.0.0~9 X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/commitdiff_plain/1575f860d04e5ef4213ab61c919c328ba9214c40?ds=sidebyside;hp=-c Drop DB command PostgreSQL --- 1575f860d04e5ef4213ab61c919c328ba9214c40 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