Update postgres.sh
This commit is contained in:
parent
ef6a0613bc
commit
2377fd8bc4
|
|
@ -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
|
#move to /tmp to prevent a red herring error when running sudo with psql
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
||||||
#add the databases, users and grant permissions to them
|
#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 "DROP SCHEMA public cascade;";
|
||||||
sudo -u postgres psql -d fusionpbx -c "CREATE SCHEMA public;";
|
sudo -u postgres psql -d fusionpbx -c "CREATE SCHEMA public;";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue