Kaynağa Gözat

HSTS language fixes in installer/upgrade scripts

Based on standard resolution of console, the original message was too long.
Kristan Kenney 7 yıl önce
ebeveyn
işleme
92a36fc346

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

@@ -1105,7 +1105,8 @@ if [ "$nginx" = 'yes' ]; then
     fi
 
     # Generating dhparam.
-    echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support, this will take some time. Please wait..."
+    echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support,"
+    echo -n "    this will take some time. Please wait..."
     openssl dhparam 4096 -out /etc/ssl/dhparam.pem > /dev/null 2>&1 &
     BACK_PID=$!
 

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

@@ -1084,7 +1084,8 @@ if [ "$nginx" = 'yes' ]; then
     fi
 
     # Generating dhparam.
-    echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support, this will take some time. Please wait..."
+    echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support,"
+    echo -n "    this will take some time. Please wait..."
     openssl dhparam 4096 -out /etc/ssl/dhparam.pem > /dev/null 2>&1 &
     BACK_PID=$!
 

+ 1 - 1
install/upgrade/0.9.8-28.sh

@@ -73,7 +73,7 @@ if [ ! -z "$BACKEND_PORT" ]; then
 fi
 
 # Generating dhparam.
-if [ -z /etc/ssl/dhparam.pem ]; then
+if [ ! -e /etc/ssl/dhparam.pem ]; then
     echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support"
     echo -n "    This will take some time, please wait..."
     openssl dhparam 4096 -out /etc/ssl/dhparam.pem > /dev/null 2>&1 &