Skip to content

Commit 38e9b7a

Browse files
author
Kristan Kenney
committed
Modify shell environment variable configuration
1 parent 511dfa3 commit 38e9b7a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,11 +914,10 @@ chmod 440 /etc/sudoers.d/admin
914914

915915
# Configuring system env
916916
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
917+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile.d/hestia.sh
918+
echo 'export PATH' >> /etc/profile.d/hestia.sh
917919
chmod 755 /etc/profile.d/hestia.sh
918920
source /etc/profile.d/hestia.sh
919-
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
920-
echo 'export PATH' >> /etc/profile
921-
source /etc/profile
922921

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

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,11 +882,10 @@ chmod 440 /etc/sudoers.d/admin
882882

883883
# Configuring system env
884884
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
885+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile.d/hestia.sh
886+
echo 'export PATH' >> /etc/profile.d/hestia.sh
885887
chmod 755 /etc/profile.d/hestia.sh
886888
source /etc/profile.d/hestia.sh
887-
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
888-
echo 'export PATH' >> /etc/profile
889-
source /etc/profile
890889

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

0 commit comments

Comments
 (0)