Kaynağa Gözat

Update finish.sh

FusionPBX 2 yıl önce
ebeveyn
işleme
3767d0f3fd
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      debian/resources/finish.sh

+ 8 - 0
debian/resources/finish.sh

@@ -38,6 +38,14 @@ 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
+mkdir -p /etc/fusionpbx
+chown -R www-data:www-data /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_username}:fusionpbx:'
+sed -i /etc/fusionpbx/config.conf -e s:"{database_password}:$database_password:"
+
 #add the database schema
 cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1