From 3f62dab0401403f822764aa52eadb27f1001bd45 Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Wed, 7 Jun 2017 19:37:23 +0200 Subject: [PATCH] addiitonal check #589 --- algo | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/algo b/algo index 77f8fc5..67d95d6 100755 --- a/algo +++ b/algo @@ -448,10 +448,22 @@ Do you want each user to have their own account for SSH tunneling? [y/N]: " -r ssh_tunneling_enabled ssh_tunneling_enabled=${ssh_tunneling_enabled:-n} - read -p " +if [ "x${server_ip}" = "xlocalhost" ]; then + myip="" +else + myip=${server_ip} +fi + +read -p " + Enter the public IP address of your server: (IMPORTANT! This IP is used to verify the certificate) -[$server_ip]: " -r IP_subject - IP_subject=${IP_subject:-$server_ip} +[$myip]: " -r IP_subject +IP_subject=${IP_subject:-$myip} + +if [ "x${IP_subject}" = "x" ]; then +echo "no server IP given. exiting." +exit 1 +fi read -p " Enter the password for the private CA key: