Просмотр исходного кода

Update variables in postinst -- hestia-nginx/hestia-php

Kristan Kenney 5 лет назад
Родитель
Сommit
ae02bcd300
2 измененных файлов с 18 добавлено и 1 удалено
  1. 8 1
      src/deb/nginx/postinst
  2. 10 0
      src/deb/php/postinst

+ 8 - 1
src/deb/nginx/postinst

@@ -15,8 +15,15 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
     exit
 fi
 
-# Load hestia.conf
+###############################################################
+#                Initialize functions/variables               #
+###############################################################
+
+# Load upgrade functions and variables
+source /usr/local/hestia/func/main.sh
+source /usr/local/hestia/func/upgrade.sh
 source /usr/local/hestia/conf/hestia.conf
+source /usr/local/hestia/install/upgrade/upgrade.conf
 
 # Reset backend port
 if [ ! -z "$BACKEND_PORT" ]; then

+ 10 - 0
src/deb/php/postinst

@@ -11,6 +11,16 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
     exit
 fi
 
+###############################################################
+#                Initialize functions/variables               #
+###############################################################
+
+# Load upgrade functions and variables
+source /usr/local/hestia/func/main.sh
+source /usr/local/hestia/func/upgrade.sh
+source /usr/local/hestia/conf/hestia.conf
+source /usr/local/hestia/install/upgrade/upgrade.conf
+
 # Restart hestia service
 if [ -f "/etc/init.d/hestia" ]; then
     systemctl restart hestia > /dev/null 2>&1