diff --git a/vpnsetup_alpine.sh b/vpnsetup_alpine.sh index da3d9a4..8b74ddf 100755 --- a/vpnsetup_alpine.sh +++ b/vpnsetup_alpine.sh @@ -538,6 +538,16 @@ set_up_ikev2() { VPN_DNS_SRV1="$VPN_DNS_SRV1" VPN_DNS_SRV2="$VPN_DNS_SRV2" \ VPN_PROTECT_CONFIG="$VPN_PROTECT_CONFIG" \ /bin/bash /opt/src/ikev2.sh --auto || status=1 + elif [ -s /opt/src/ikev2.sh ]; then +cat <<'EOF' +================================================ + +IKEv2 is already set up on this server. +To manage IKEv2 clients, run: sudo ikev2.sh + +================================================ + +EOF fi } diff --git a/vpnsetup_amzn.sh b/vpnsetup_amzn.sh index b944916..102a4a4 100755 --- a/vpnsetup_amzn.sh +++ b/vpnsetup_amzn.sh @@ -551,6 +551,16 @@ set_up_ikev2() { VPN_DNS_SRV1="$VPN_DNS_SRV1" VPN_DNS_SRV2="$VPN_DNS_SRV2" \ VPN_PROTECT_CONFIG="$VPN_PROTECT_CONFIG" \ /bin/bash /opt/src/ikev2.sh --auto || status=1 + elif [ -s /opt/src/ikev2.sh ]; then +cat <<'EOF' +================================================ + +IKEv2 is already set up on this server. +To manage IKEv2 clients, run: sudo ikev2.sh + +================================================ + +EOF fi } diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 8385d10..383d07b 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -664,6 +664,16 @@ set_up_ikev2() { VPN_DNS_SRV1="$VPN_DNS_SRV1" VPN_DNS_SRV2="$VPN_DNS_SRV2" \ VPN_PROTECT_CONFIG="$VPN_PROTECT_CONFIG" \ /bin/bash /opt/src/ikev2.sh --auto || status=1 + elif [ -s /opt/src/ikev2.sh ]; then +cat <<'EOF' +================================================ + +IKEv2 is already set up on this server. +To manage IKEv2 clients, run: sudo ikev2.sh + +================================================ + +EOF fi } diff --git a/vpnsetup_ubuntu.sh b/vpnsetup_ubuntu.sh index c082293..8fba9a7 100755 --- a/vpnsetup_ubuntu.sh +++ b/vpnsetup_ubuntu.sh @@ -652,6 +652,16 @@ set_up_ikev2() { VPN_DNS_SRV1="$VPN_DNS_SRV1" VPN_DNS_SRV2="$VPN_DNS_SRV2" \ VPN_PROTECT_CONFIG="$VPN_PROTECT_CONFIG" \ /bin/bash /opt/src/ikev2.sh --auto || status=1 + elif [ -s /opt/src/ikev2.sh ]; then +cat <<'EOF' +================================================ + +IKEv2 is already set up on this server. +To manage IKEv2 clients, run: sudo ikev2.sh + +================================================ + +EOF fi }