From de2d49d3a68c8251f518d14b6fef8d1a3008e12d Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 24 May 2021 01:14:32 -0500 Subject: [PATCH] Improve IKEv2 setup - Add a link to /usr/bin for the IKEv2 helper script --- vpnsetup.sh | 3 ++- vpnsetup_amzn.sh | 3 ++- vpnsetup_centos.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index 9e49447..6cf9917 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -199,8 +199,9 @@ bigecho "Downloading IKEv2 script..." ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x - wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh + wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" ) || /bin/rm -f ikev2.sh +[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null bigecho "Downloading Libreswan..." diff --git a/vpnsetup_amzn.sh b/vpnsetup_amzn.sh index d9c7214..a57edd7 100755 --- a/vpnsetup_amzn.sh +++ b/vpnsetup_amzn.sh @@ -163,8 +163,9 @@ bigecho "Downloading IKEv2 script..." ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x - wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh + wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" ) || /bin/rm -f ikev2.sh +[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null bigecho "Downloading Libreswan..." diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 54d458e..838c663 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -212,8 +212,9 @@ bigecho "Downloading IKEv2 script..." ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x - wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh + wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" ) || /bin/rm -f ikev2.sh +[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null bigecho "Downloading Libreswan..."