From 2377fd8bc4ed94b3a2e4dd78c4133aef675585dc Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 23 Apr 2017 01:54:00 -0600 Subject: [PATCH] Update postgres.sh --- debian/resources/postgres.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/resources/postgres.sh b/debian/resources/postgres.sh index b3fd3f6..93e1fd4 100755 --- a/debian/resources/postgres.sh +++ b/debian/resources/postgres.sh @@ -68,6 +68,7 @@ sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup.sh #move to /tmp to prevent a red herring error when running sudo with psql cwd=$(pwd) cd /tmp + #add the databases, users and grant permissions to them sudo -u postgres psql -d fusionpbx -c "DROP SCHEMA public cascade;"; sudo -u postgres psql -d fusionpbx -c "CREATE SCHEMA public;";