Skip to content

Commit ae02bcd

Browse files
author
Kristan Kenney
committed
Update variables in postinst -- hestia-nginx/hestia-php
1 parent 5305ce3 commit ae02bcd

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/deb/nginx/postinst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
1515
exit
1616
fi
1717

18-
# Load hestia.conf
18+
###############################################################
19+
# Initialize functions/variables #
20+
###############################################################
21+
22+
# Load upgrade functions and variables
23+
source /usr/local/hestia/func/main.sh
24+
source /usr/local/hestia/func/upgrade.sh
1925
source /usr/local/hestia/conf/hestia.conf
26+
source /usr/local/hestia/install/upgrade/upgrade.conf
2027

2128
# Reset backend port
2229
if [ ! -z "$BACKEND_PORT" ]; then

src/deb/php/postinst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
1111
exit
1212
fi
1313

14+
###############################################################
15+
# Initialize functions/variables #
16+
###############################################################
17+
18+
# Load upgrade functions and variables
19+
source /usr/local/hestia/func/main.sh
20+
source /usr/local/hestia/func/upgrade.sh
21+
source /usr/local/hestia/conf/hestia.conf
22+
source /usr/local/hestia/install/upgrade/upgrade.conf
23+
1424
# Restart hestia service
1525
if [ -f "/etc/init.d/hestia" ]; then
1626
systemctl restart hestia > /dev/null 2>&1

0 commit comments

Comments
 (0)