forked from norman/fusionpbx-install.sh-github-mirror
Update postgresql.sh
This commit is contained in:
3
debian/resources/postgresql.sh
vendored
3
debian/resources/postgresql.sh
vendored
@@ -55,8 +55,11 @@ systemctl restart postgresql
|
|||||||
|
|
||||||
#install the database backup
|
#install the database backup
|
||||||
cp backup/fusionpbx-backup.sh /etc/cron.daily
|
cp backup/fusionpbx-backup.sh /etc/cron.daily
|
||||||
|
cp backup/fusionpbx-maintenance.sh /etc/cron.daily
|
||||||
chmod 755 /etc/cron.daily/fusionpbx-backup.sh
|
chmod 755 /etc/cron.daily/fusionpbx-backup.sh
|
||||||
|
chmod 755 /etc/cron.daily/fusionpbx-maintenance.sh
|
||||||
sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup.sh
|
sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup.sh
|
||||||
|
sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-maintenance.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)
|
||||||
|
|||||||
Reference in New Issue
Block a user