Skip to content

Commit 64cb6dd

Browse files
committed
Add /usr/local/hestia/bin/ to path variable
On new installs If a user sudo in to root the path variable is lost and user have as v-update-letsencrypt-ssl: command not found
1 parent e329bd2 commit 64cb6dd

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)