forked from norman/fusionpbx-install.sh-github-mirror
Update finish.sh
This commit is contained in:
8
debian/resources/finish.sh
vendored
8
debian/resources/finish.sh
vendored
@@ -22,6 +22,14 @@ export PGPASSWORD=$database_password
|
||||
sudo -u postgres psql -c "ALTER USER fusionpbx WITH PASSWORD '$database_password';"
|
||||
sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
|
||||
|
||||
#install the database backup
|
||||
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/$database_password/g" /etc/cron.daily/fusionpbx-backup
|
||||
sed -i "s/zzz/$database_password/g" /etc/cron.daily/fusionpbx-maintenance
|
||||
|
||||
#add the config.php
|
||||
mkdir -p /etc/fusionpbx
|
||||
chown -R www-data:www-data /etc/fusionpbx
|
||||
|
||||
Reference in New Issue
Block a user