From 5b5dbd70885e14afd1f7015d29367c09babbaf47 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 23 Jan 2018 19:13:59 -0700 Subject: [PATCH] Update postgresql.sh --- debian/resources/postgresql.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/resources/postgresql.sh b/debian/resources/postgresql.sh index ed030c4..ba76c3a 100755 --- a/debian/resources/postgresql.sh +++ b/debian/resources/postgresql.sh @@ -55,8 +55,11 @@ systemctl restart postgresql #install the database backup 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-maintenance.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 cwd=$(pwd)