make database host dynamic. (#334)

Co-authored-by: Gill Abada <gill@callifi.com>
This commit is contained in:
Gill Abada
2020-07-31 11:17:08 -04:00
committed by GitHub
parent 5d3a0d2624
commit 278e65c2e1
10 changed files with 10 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ if [ .$nginx_enabled = .'true' ]; then
mkdir -p /etc/fusionpbx
chown -R www:www /etc/fusionpbx
cp fusionpbx/config.php /etc/fusionpbx
sed -i' ' -e s:"{database_host}:$database_host:" /etc/fusionpbx/config.php
sed -i' ' -e s:'{database_username}:fusionpbx:' /etc/fusionpbx/config.php
sed -i' ' -e s:"{database_password}:$database_password:" /etc/fusionpbx/config.php