Update postgres.sh
This commit is contained in:
parent
5f153ccbf5
commit
ece8a94af9
|
|
@ -52,11 +52,10 @@ systemctl restart postgresql
|
|||
#init.d
|
||||
#/usr/sbin/service postgresql restart
|
||||
|
||||
#enable and run the backup
|
||||
#install the database backup
|
||||
cp backup/fusionpbx-backup.sh /etc/cron.daily
|
||||
chmod 755 /etc/cron.daily/fusionpbx-backup.sh
|
||||
sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup.sh
|
||||
/etc/cron.daily/fusionpbx-backup.sh
|
||||
|
||||
#move to /tmp to prevent a red herring error when running sudo with psql
|
||||
cwd=$(pwd)
|
||||
|
|
|
|||
Loading…
Reference in New Issue