Browse Source

Merge branch 'bugfix-installer' into develop

Kristan Kenney 7 years ago
parent
commit
ac776189f4
2 changed files with 14 additions and 6 deletions
  1. 7 3
      install/hst-install-debian.sh
  2. 7 3
      install/hst-install-ubuntu.sh

+ 7 - 3
install/hst-install-debian.sh

@@ -86,6 +86,10 @@ help() {
     exit 1
     exit 1
 }
 }
 
 
+# Define file download function
+download_file() {
+  wget $1 -q --show-progress --progress=bar:force
+}
 
 
 # Defining password-gen function
 # Defining password-gen function
 gen_pass() {
 gen_pass() {
@@ -903,9 +907,9 @@ chmod 440 /etc/sudoers.d/admin
 echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
 echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
 chmod 755 /etc/profile.d/hestia.sh
 chmod 755 /etc/profile.d/hestia.sh
 source /etc/profile.d/hestia.sh
 source /etc/profile.d/hestia.sh
-echo 'PATH=$PATH:'$HESTIA'/bin' >> /root/.bash_profile
-echo 'export PATH' >> /root/.bash_profile
-source /root/.bash_profile
+echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
+echo 'export PATH' >> /etc/profile
+source /etc/profile
 
 
 # Configuring logrotate for Hestia logs
 # Configuring logrotate for Hestia logs
 cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia
 cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia

+ 7 - 3
install/hst-install-ubuntu.sh

@@ -71,6 +71,10 @@ help() {
     exit 1
     exit 1
 }
 }
 
 
+# Define file download function
+download_file() {
+  wget $1 -q --show-progress --progress=bar:force
+}
 
 
 # Defining password-gen function
 # Defining password-gen function
 gen_pass() {
 gen_pass() {
@@ -878,9 +882,9 @@ chmod 440 /etc/sudoers.d/admin
 echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
 echo "export HESTIA='$HESTIA'" > /etc/profile.d/hestia.sh
 chmod 755 /etc/profile.d/hestia.sh
 chmod 755 /etc/profile.d/hestia.sh
 source /etc/profile.d/hestia.sh
 source /etc/profile.d/hestia.sh
-echo 'PATH=$PATH:'$HESTIA'/bin' >> /root/.bash_profile
-echo 'export PATH' >> /root/.bash_profile
-source /root/.bash_profile
+echo 'PATH=$PATH:'$HESTIA'/bin' >> /etc/profile
+echo 'export PATH' >> /etc/profile
+source /etc/profile
 
 
 # Configuring logrotate for Hestia logs
 # Configuring logrotate for Hestia logs
 cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia
 cp -f $hestiacp/logrotate/hestia /etc/logrotate.d/hestia