From a14809e7c3c52eaf8ffba3ea3a53f6c6578b5fd5 Mon Sep 17 00:00:00 2001 From: Super-Baleine Date: Tue, 12 Jul 2016 11:07:08 +0200 Subject: [PATCH] delete read --- openvpn-install.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 8f0ea57..8fc5a0a 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -68,14 +68,7 @@ newclient () { # and to avoid getting an IPv6. IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1) if [[ "$IP" = "" ]]; then - read -p "Can I search your ip on Internet ? (y|n) " search_ip - if [[ $search_ip = "y" ]]; then - IP=$(wget -qO- ipv4.icanhazip.com) - else - echo "So, I cannot continue without the server ip... - Exiting...";exit 0; - fi - unset search_ip + IP=$(wget -qO- ipv4.icanhazip.com) fi