Przeglądaj źródła

Add set_default_port function.

Raphael Schneeberger 7 lat temu
rodzic
commit
ee886f464f
2 zmienionych plików z 15 dodań i 0 usunięć
  1. 8 0
      install/hst-install-debian.sh
  2. 7 0
      install/hst-install-ubuntu.sh

+ 8 - 0
install/hst-install-debian.sh

@@ -137,6 +137,14 @@ set_default_lang() {
     fi
     fi
 }
 }
 
 
+# Define the default backend port
+set_default_port() {
+    if [ -z "$port" ]; then
+        eval port=$1
+    fi
+}
+
+
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Verifications                         #
 #                    Verifications                         #

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

@@ -116,6 +116,13 @@ set_default_lang() {
     fi
     fi
 }
 }
 
 
+# Define the default backend port
+set_default_port() {
+    if [ -z "$port" ]; then
+        eval port=$1
+    fi
+}
+
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Verifications                         #
 #                    Verifications                         #