Skip to content

Commit 203eec2

Browse files
authored
Merge pull request hestiacp#2961 from jaapmarcus/fix/update-path-variable
Add /usr/local/hestia/bin/ to path variable
2 parents 10904d0 + 64cb6dd commit 203eec2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,6 +2042,10 @@ write_config_value "SERVER_SMTP_PASSWD" ""
20422042
write_config_value "SERVER_SMTP_ADDR" ""
20432043
write_config_value "POLICY_CSRF_STRICTNESS" "1"
20442044

2045+
# Add /usr/local/hestia/bin/ to path variable
2046+
echo 'if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
2047+
. /etc/profile.d/hestia.sh
2048+
fi' >> /root/.bashrc
20452049

20462050
#----------------------------------------------------------#
20472051
# Hestia Access Info #

install/hst-install-ubuntu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,11 @@ write_config_value "SERVER_SMTP_PASSWD" ""
21242124
write_config_value "SERVER_SMTP_ADDR" ""
21252125
write_config_value "POLICY_CSRF_STRICTNESS" "1"
21262126

2127+
# Add /usr/local/hestia/bin/ to path variable
2128+
echo 'if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
2129+
. /etc/profile.d/hestia.sh
2130+
fi' >> /root/.bashrc
2131+
21272132
#----------------------------------------------------------#
21282133
# Hestia Access Info #
21292134
#----------------------------------------------------------#

0 commit comments

Comments
 (0)