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;";