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..."