Skip to content

Commit 15850cb

Browse files
authored
Merge pull request hestiacp#2014 from jaapmarcus/fix/load-system-paths
Fix hestiacp#1698 HESTIA var missing
2 parents 5746055 + c8bdc0f commit 15850cb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/deb/hestia/postinst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ fi
88
# Initialize functions/variables #
99
###############################################################
1010

11+
if [ -z "$HESTIA" ]; then
12+
export HESTIA='/usr/local/hestia'
13+
PATH=$PATH:/usr/local/hestia/bin
14+
export PATH
15+
fi
16+
1117
# Load upgrade functions and variables
12-
source /usr/local/hestia/func/main.sh
13-
source /usr/local/hestia/func/upgrade.sh
14-
source /usr/local/hestia/conf/hestia.conf
15-
source /usr/local/hestia/install/upgrade/upgrade.conf
18+
source $HESTIA/func/main.sh
19+
source $HESTIA/func/upgrade.sh
20+
source $HESTIA/conf/hestia.conf
21+
source $HESTIA/install/upgrade/upgrade.conf
1622

1723
###############################################################
1824
# Set new version numbers for packages #

0 commit comments

Comments
 (0)