Skip to content

Commit 34f8713

Browse files
committed
Include $HESTIA check in all packages
Closes hestiacp#2101
1 parent 302cb1e commit 34f8713

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/deb/nginx/postinst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ fi
1919
# Initialize functions/variables #
2020
###############################################################
2121

22+
if [ -z "$HESTIA" ]; then
23+
export HESTIA='/usr/local/hestia'
24+
PATH=$PATH:/usr/local/hestia/bin
25+
export PATH
26+
fi
27+
2228
# Load upgrade functions and variables
2329
source /usr/local/hestia/func/main.sh
2430
source /usr/local/hestia/func/upgrade.sh

src/deb/php/postinst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ fi
1515
# Initialize functions/variables #
1616
###############################################################
1717

18+
if [ -z "$HESTIA" ]; then
19+
export HESTIA='/usr/local/hestia'
20+
PATH=$PATH:/usr/local/hestia/bin
21+
export PATH
22+
fi
23+
1824
# Load upgrade functions and variables
1925
source /usr/local/hestia/func/main.sh
2026
source /usr/local/hestia/func/upgrade.sh

0 commit comments

Comments
 (0)