|
@@ -2406,11 +2406,16 @@ BIN="$HESTIA/bin"
|
|
|
source $HESTIA/func/syshealth.sh
|
|
source $HESTIA/func/syshealth.sh
|
|
|
syshealth_repair_system_config
|
|
syshealth_repair_system_config
|
|
|
|
|
|
|
|
-# Add /usr/local/hestia/bin/ to path variable
|
|
|
|
|
-echo 'if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
|
|
|
|
|
|
|
+# Add /usr/local/hestia/bin/ to PATH variable in .bashrc if it exists
|
|
|
|
|
+[[ -f /root/.bashrc ]] && echo 'if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
|
|
|
. /etc/profile.d/hestia.sh
|
|
. /etc/profile.d/hestia.sh
|
|
|
fi' >> /root/.bashrc
|
|
fi' >> /root/.bashrc
|
|
|
|
|
|
|
|
|
|
+# Add /usr/local/hestia/bin/ to PATH variable in .zshrc if it exists
|
|
|
|
|
+[[ -f /root/.zshrc ]] && echo 'if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
|
|
|
|
|
+ . /etc/profile.d/hestia.sh
|
|
|
|
|
+fi' >> /root/.zshrc
|
|
|
|
|
+
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
# Hestia Access Info #
|
|
# Hestia Access Info #
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|