forked from norman/fusionpbx-install.sh-github-mirror
make database host dynamic. (#334)
Co-authored-by: Gill Abada <gill@callifi.com>
This commit is contained in:
@@ -69,6 +69,7 @@ cd $cwd
|
||||
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:"
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
//$db_path = '/var/www/fusionpbx/secure'; //the path is determined by a php variable
|
||||
|
||||
//pgsql: database connection information
|
||||
$db_host = 'localhost'; //set the host only if the database is not local
|
||||
$db_host = '{database_host}';
|
||||
$db_port = '5432';
|
||||
$db_name = 'fusionpbx';
|
||||
$db_username = '{database_username}';
|
||||
|
||||
Reference in New Issue
Block a user