Update finish.sh

This commit is contained in:
FusionPBX 2022-10-17 22:13:41 -06:00 committed by GitHub
parent f116ade736
commit a713b4eec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -28,17 +28,10 @@ if [ .$nginx_enabled = .'true' ]; then
sudo -u postgres psql -c "ALTER USER fusionpbx WITH PASSWORD '$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';" sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
#add the config.php
mkdir -p /usr/local/etc/fusionpbx
chown -R www:www /usr/local/etc/fusionpbx
cp fusionpbx/config.php /usr/local/etc/fusionpbx
sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.php
sed -i' ' -e s:'{database_username}:fusionpbx:' /usr/local/etc/fusionpbx/config.php
sed -i' ' -e s:"{database_password}:$database_password:" /usr/local/etc/fusionpbx/config.php
#add the config.conf #add the config.conf
cp fusionpbx/config.conf /usr/local/etc/fusionpbx cp fusionpbx/config.conf /usr/local/etc/fusionpbx
sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.conf sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.conf
sed -i' ' -e s:"{database_name}:$database_name:" /usr/local/etc/fusionpbx/config.conf
sed -i' ' -e s:'{database_username}:fusionpbx:' /usr/local/etc/fusionpbx/config.conf sed -i' ' -e s:'{database_username}:fusionpbx:' /usr/local/etc/fusionpbx/config.conf
sed -i' ' -e s:"{database_password}:$database_password:" /usr/local/etc/fusionpbx/config.conf sed -i' ' -e s:"{database_password}:$database_password:" /usr/local/etc/fusionpbx/config.conf