From 0119de50ad3315d92746a8215cbba65710967001 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 2 Jan 2021 23:44:12 -0600 Subject: [PATCH] Update tests --- .github/workflows/main.yml | 52 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1f7aa2..3c35394 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,7 +76,7 @@ jobs: if [ "$1" = "centos" ]; then wget -t 3 -T 30 -nv -O vpnsetup.sh https://git.io/vpnsetup-centos else - wget -t 3 -T 30 -nv -O vpnsetup.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/vpnsetup_amzn.sh + wget -t 3 -T 30 -nv -O vpnsetup.sh https://git.io/vpnsetup-amzn fi else export DEBIAN_FRONTEND=noninteractive @@ -87,6 +87,7 @@ jobs: wget -t 3 -T 30 -nv -O vpnsetup.sh https://git.io/vpnsetup fi + sed -i '/swan_ver_url/s/^/#/' vpnsetup.sh sh vpnsetup.sh if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then systemctl start ipsec @@ -172,15 +173,43 @@ jobs: if [ "$1" = "centos" ]; then wget -t 3 -T 30 -nv -O vpnupgrade.sh https://git.io/vpnupgrade-centos else - wget -t 3 -T 30 -nv -O vpnupgrade.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnupgrade_amzn.sh + wget -t 3 -T 30 -nv -O vpnupgrade.sh https://git.io/vpnupgrade-amzn fi else sed -i '/pluto/d' /var/log/auth.log pkill -HUP rsyslog wget -t 3 -T 30 -nv -O vpnupgrade.sh https://git.io/vpnupgrade fi + + sed -i '/swan_ver_url/s/^/#/' vpnupgrade.sh + sed -i '/^SWAN_VER=/s/4.1/3.32/' vpnupgrade.sh sh vpnupgrade.sh <