Skip to content

Commit ac77618

Browse files
author
Kristan Kenney
committed
Merge branch 'bugfix-installer' into develop
2 parents c2290f0 + d8f350e commit ac77618

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

install/hst-install-debian.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ help() {
8686
exit 1
8787
}
8888

89+
# Define file download function
90+
download_file() {
91+
wget $1 -q --show-progress --progress=bar:force
92+
}
8993

9094
# Defining password-gen function
9195
gen_pass() {
@@ -903,9 +907,9 @@ chmod 440 /etc/sudoers.d/admin
903907
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
904908
chmod 755 /etc/profile.d/hestia.sh
905909
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
910+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
911+
echo 'export PATH' >> /etc/profile
912+
source /etc/profile
909913

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

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ help() {
7171
exit 1
7272
}
7373

74+
# Define file download function
75+
download_file() {
76+
wget $1 -q --show-progress --progress=bar:force
77+
}
7478

7579
# Defining password-gen function
7680
gen_pass() {
@@ -878,9 +882,9 @@ chmod 440 /etc/sudoers.d/admin
878882
echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
879883
chmod 755 /etc/profile.d/hestia.sh
880884
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
885+
echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
886+
echo 'export PATH' >> /etc/profile
887+
source /etc/profile
884888

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

0 commit comments

Comments
 (0)