Skip to content

Commit 970726a

Browse files
author
Kristan Kenney
committed
Export PATH as global variable
Updated to export PATH variable globally instead of being limited to the root user.
1 parent 53e8d53 commit 970726a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

install/hst-install-debian.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,9 @@ chmod 440 /etc/sudoers.d/admin
903903
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
904904
chmod 755 /etc/profile.d/hestia.sh
905905
source /etc/profile.d/hestia.sh
906-
echo 'PATH=$PATH:'$HESTIA'/bin' >> /root/.bash_profile
907-
echo 'export PATH' >> /root/.bash_profile
908-
source /root/.bash_profile
906+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
907+
echo 'export PATH' >> /etc/profile
908+
source /etc/profile
909909

910910
# Configuring logrotate for Hestia logs
911911
cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,9 +878,9 @@ chmod 440 /etc/sudoers.d/admin
878878
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
879879
chmod 755 /etc/profile.d/hestia.sh
880880
source /etc/profile.d/hestia.sh
881-
echo 'PATH=$PATH:'$HESTIA'/bin' >> /root/.bash_profile
882-
echo 'export PATH' >> /root/.bash_profile
883-
source /root/.bash_profile
881+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
882+
echo 'export PATH' >> /etc/profile
883+
source /etc/profile
884884

885885
# Configuring logrotate for Hestia logs
886886
cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia

0 commit comments

Comments
 (0)