Browse Source

Support --no-integrate

Ernesto Nicolás Carrea 5 years ago
parent
commit
92b2436ba2
2 changed files with 6 additions and 2 deletions
  1. 3 1
      bin/module/php-fpm/del.inc
  2. 3 1
      bin/module/php/del.inc

+ 3 - 1
bin/module/php-fpm/del.inc

@@ -65,7 +65,9 @@ hestia_module_php-fpm_del() {
 
     osal_kv_write $HESTIA_CONF_MODULES/php-fpm.conf "php${php_withoutdot}_present" '0'
 
-    hestia module php-fpm integrate
+    if [ ! "$param_without_no_integrate" ]; then
+        hestia module php-fpm integrate
+    fi
 
     log_history "removed php-fpm $phpversion" '' 'admin'
 

+ 3 - 1
bin/module/php/del.inc

@@ -79,7 +79,9 @@ hestia_module_php_del() {
 
     osal_kv_write $HESTIA_CONF_MODULES/php.conf "php${php_withoutdot}_present" '0'
 
-    hestia module php integrate
+    if [ ! "$param_without_no_integrate" ]; then
+        hestia module php integrate
+    fi
 
     log_history "removed php $phpversion" '' 'admin'