File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff 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
9195gen_pass () {
@@ -903,9 +907,9 @@ chmod 440 /etc/sudoers.d/admin
903907echo " export HESTIA='$HESTIA '" > /etc/profile.d/hestia.sh
904908chmod 755 /etc/profile.d/hestia.sh
905909source /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
911915cp -f $hestiacp /logrotate/hestia /etc/logrotate.d/hestia
Original file line number Diff line number Diff 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
7680gen_pass () {
@@ -878,9 +882,9 @@ chmod 440 /etc/sudoers.d/admin
878882echo " export HESTIA='$HESTIA '" > /etc/profile.d/hestia.sh
879883chmod 755 /etc/profile.d/hestia.sh
880884source /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
886890cp -f $hestiacp /logrotate/hestia /etc/logrotate.d/hestia
You can’t perform that action at this time.
0 commit comments