From c5d6d462314edd02748e4eae745912c11f57bd29 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 21 Nov 2017 14:50:17 -0700 Subject: [PATCH] Update finish.sh --- devuan/resources/finish.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/devuan/resources/finish.sh b/devuan/resources/finish.sh index 344cfbf..df8ff01 100755 --- a/devuan/resources/finish.sh +++ b/devuan/resources/finish.sh @@ -19,13 +19,21 @@ fi verbose "Create the database and users" # -# Install the database backup +# Install the database backup scripts # cp backup/fusionpbx-backup.sh /etc/cron.daily chmod 755 /etc/cron.daily/fusionpbx-backup.sh sed -i "s/zzz/${database_password}/g" /etc/cron.daily/fusionpbx-backup.sh +# +# Install the maintenance script +# + +cp backup/fusionpbx-maintenance.sh /etc/cron.daily +chmod 755 /etc/cron.daily/fusionpbx-maintenance.sh +sed -i "s/zzz/${database_password}/g" /etc/cron.daily/fusionpbx-maintenance.sh + # # Move to /tmp to prevent a red herring error when running sudo with psql #