From ece8a94af9ae12bc214e025c2b4b30d8ca9c9ef3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 12:20:19 -0700 Subject: [PATCH] Update postgres.sh --- debian/resources/postgres.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/resources/postgres.sh b/debian/resources/postgres.sh index 2d02411..9e2160a 100755 --- a/debian/resources/postgres.sh +++ b/debian/resources/postgres.sh @@ -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)