Update finish.sh

This commit is contained in:
FusionPBX 2017-11-21 14:50:17 -07:00 committed by GitHub
parent 87da5733a9
commit c5d6d46231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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
#