1
0
mirror of synced 2024-12-02 01:26:03 +03:00

Update tests

This commit is contained in:
hwdsl2 2022-01-11 22:55:20 -06:00
parent 2867107105
commit c098e02ff4
2 changed files with 12 additions and 8 deletions

View File

@ -530,7 +530,7 @@ jobs:
fi fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5; do for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -1004,7 +1004,7 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5; do for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -1400,7 +1400,8 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
for ver in 4.5; do for ver in 4.5 4.6; do
ipsec whack --shutdown || true
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS bash vpnup.sh <<ANSWERS
y y
@ -1416,7 +1417,8 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-alpine wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-alpine
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.5; do for ver in 4.5 4.6; do
ipsec whack --shutdown || true
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS bash vpnup.sh <<ANSWERS
y y

View File

@ -559,7 +559,7 @@ jobs:
fi fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5; do for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -1033,7 +1033,7 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5; do for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -1429,7 +1429,8 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
for ver in 4.5; do for ver in 4.5 4.6; do
ipsec whack --shutdown || true
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS bash vpnup.sh <<ANSWERS
y y
@ -1445,7 +1446,8 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-alpine wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-alpine
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.5; do for ver in 4.5 4.6; do
ipsec whack --shutdown || true
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS bash vpnup.sh <<ANSWERS
y y