Skip to content

Commit 6d16aad

Browse files
authored
Merge pull request hestiacp#2102 from jaapmarcus/fix/2101-hestia-var-missing
Include $HESTIA check in all packages
2 parents 302cb1e + 346a912 commit 6d16aad

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

func/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ upgrade_send_notification_to_email () {
209209
echo "- Check our forums for possible solutions: https://forum.hestiacp.com" >> $message_tmp_file
210210
echo "- File an issue report on GitHub: https://github.com/hestiacp/hestiacp/issues" >> $message_tmp_file
211211
echo "" >> $message_tmp_file
212-
echo "Help support the Hestia Control Panel project by donating via PayPal: https://www.hestiacp.com/donate" >> $message_tmp_file"
212+
echo "Help support the Hestia Control Panel project by donating via PayPal: https://www.hestiacp.com/donate" >> $message_tmp_file
213213
echo "===================================================" >> $message_tmp_file
214214
echo "Have a wonderful day," >> $message_tmp_file
215215
echo "The Hestia Control Panel development team" >> $message_tmp_file

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)