Jaap Marcus 5 лет назад
Родитель
Сommit
f874e4f3e7
2 измененных файлов с 11 добавлено и 0 удалено
  1. 8 0
      func/upgrade.sh
  2. 3 0
      src/deb/hestia/postinst

+ 8 - 0
func/upgrade.sh

@@ -214,6 +214,14 @@ upgrade_phpmyadmin() {
     fi
 }
 
+update_multiphp_conf() {
+    #Update multiphp con
+    for version in $(v-list-sys-php plain); do 
+        cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
+            $HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl; 
+    done
+}
+
 upgrade_get_version() {
     # Retrieve new version number for Hestia Control Panel from .deb package
     new_version=$(dpkg -l | awk '$2=="hestia" { print $3 }')

+ 3 - 0
src/deb/hestia/postinst

@@ -34,6 +34,9 @@ upgrade_welcome_message
 # Execute version-specific upgrade scripts
 upgrade_start_routine
 
+# Update configuration Multi PHP 
+update_multiphp_conf
+
 # Upgrade phpMyAdmin if applicable
 upgrade_phpmyadmin