From 95b84963b82660954913e4dd6423f3c973e3633b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 11 Dec 2018 01:22:42 -0700 Subject: [PATCH] Update postgresql.sh --- debian/resources/postgresql.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/resources/postgresql.sh b/debian/resources/postgresql.sh index b605512..91d3d02 100755 --- a/debian/resources/postgresql.sh +++ b/debian/resources/postgresql.sh @@ -6,7 +6,7 @@ cd "$(dirname "$0")" #includes . ./config.sh . ./colors.sh -. ./environment.sh +. ./environment.s #send a message echo "Install PostgreSQL" @@ -57,12 +57,12 @@ systemctl restart postgresql #/usr/sbin/service postgresql restart #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 +cp backup/fusionpbx-backup /etc/cron.daily +cp backup/fusionpbx-maintenance /etc/cron.daily +chmod 755 /etc/cron.daily/fusionpbx-backup +chmod 755 /etc/cron.daily/fusionpbx-maintenance +sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup +sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-maintenance #move to /tmp to prevent a red herring error when running sudo with psql cwd=$(pwd)