|
@@ -30,17 +30,8 @@ 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-backup
|
|
sed -i "s/zzz/$database_password/g" /etc/cron.daily/fusionpbx-maintenance
|
|
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
|
|
|
|
-cp fusionpbx/config.php /etc/fusionpbx
|
|
|
|
-sed -i /etc/fusionpbx/config.php -e s:"{database_host}:$database_host:"
|
|
|
|
-sed -i /etc/fusionpbx/config.php -e s:'{database_username}:fusionpbx:'
|
|
|
|
-sed -i /etc/fusionpbx/config.php -e s:"{database_password}:$database_password:"
|
|
|
|
-
|
|
|
|
#add the config.conf
|
|
#add the config.conf
|
|
mkdir -p /etc/fusionpbx
|
|
mkdir -p /etc/fusionpbx
|
|
-chown -R www-data:www-data /etc/fusionpbx
|
|
|
|
cp fusionpbx/config.conf /etc/fusionpbx
|
|
cp fusionpbx/config.conf /etc/fusionpbx
|
|
sed -i /etc/fusionpbx/config.conf -e s:"{database_host}:$database_host:"
|
|
sed -i /etc/fusionpbx/config.conf -e s:"{database_host}:$database_host:"
|
|
sed -i /etc/fusionpbx/config.conf -e s:'{database_username}:fusionpbx:'
|
|
sed -i /etc/fusionpbx/config.conf -e s:'{database_username}:fusionpbx:'
|