From 14af993d6aa76a505984bfb03d89ff78b716aa48 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 29 Jan 2022 12:36:03 -0600 Subject: [PATCH] Update IKEv2 script - Cleanup --- extras/ikev2setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 2426b68..4ca2f94 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -281,7 +281,7 @@ check_server_dns_name() { check_custom_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "Invalid DNS server(s)." fi } @@ -1031,7 +1031,7 @@ apply_ubuntu1804_nss_fix() { } restart_ipsec_service() { - if [ "$in_container" = "0" ] || { [ "$in_container" = "1" ] && service ipsec status >/dev/null 2>&1; } then + if [ "$in_container" = "0" ] || { [ "$in_container" = "1" ] && service ipsec status >/dev/null 2>&1; }; then bigecho2 "Restarting IPsec service..." mkdir -p /run/pluto service ipsec restart 2>/dev/null