Ver Fonte

Merge pull request #2291 from jaapmarcus/fix/set-default-port-installers

Fix issue #2288 Port not set properly on install in hestia.conf
Raphael Schneeberger há 4 anos atrás
pai
commit
6302c1562a
2 ficheiros alterados com 6 adições e 2 exclusões
  1. 3 1
      install/hst-install-debian.sh
  2. 3 1
      install/hst-install-ubuntu.sh

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

@@ -145,7 +145,6 @@ set_default_lang() {
 set_default_port() {
     if [ -z "$port" ]; then
         eval port=$1
-        echo "BACKEND_PORT='$port'" >> $HESTIA/conf/hestia.conf
     fi
 }
 
@@ -1084,6 +1083,9 @@ rm -f $HESTIA/conf/hestia.conf > /dev/null 2>&1
 touch $HESTIA/conf/hestia.conf
 chmod 660 $HESTIA/conf/hestia.conf
 
+# write default value to hesita.conf will get overwritten if changed
+write_config_value "BACKEND_PORT" "8083"
+
 # Web stack
 if [ "$apache" = 'yes' ]; then
     write_config_value "WEB_SYSTEM" "apache2"

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

@@ -126,7 +126,6 @@ set_default_lang() {
 set_default_port() {
     if [ -z "$port" ]; then
         eval port=$1
-        echo "BACKEND_PORT='$port'" >> $HESTIA/conf/hestia.conf
     fi
 }
 
@@ -248,6 +247,9 @@ while getopts "a:w:v:j:k:m:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:fh" Option; do
     esac
 done
 
+# write default value to hesita.conf will get overwritten if changed
+write_config_value "BACKEND_PORT" "8083"
+
 # Defining default software stack
 set_default_value 'nginx' 'yes'
 set_default_value 'apache' 'yes'