1
0
mirror of synced 2024-11-25 22:36:04 +03:00

Update tests

This commit is contained in:
hwdsl2 2022-01-11 23:33:00 -06:00
parent c098e02ff4
commit 1b1d2fb160
2 changed files with 12 additions and 20 deletions

View File

@ -511,7 +511,7 @@ jobs:
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
for ver in 3.32 4.1 4.2; do
for ver in 4.4 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
y
@ -530,10 +530,9 @@ jobs:
fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash
for ver in 4.5 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS
bash vpnup.sh <<ANSWERS
y
ANSWERS
restart_ipsec
@ -987,9 +986,7 @@ jobs:
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
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
for ver in 3.32 4.1 4.2; do
[ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue
for ver in 4.4 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
y
@ -1004,10 +1001,9 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash
for ver in 4.5 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS
bash vpnup.sh <<ANSWERS
y
ANSWERS
restart_ipsec

View File

@ -540,7 +540,7 @@ jobs:
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
for ver in 3.32 4.1 4.2; do
for ver in 4.4 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
y
@ -559,10 +559,9 @@ jobs:
fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash
for ver in 4.5 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS
bash vpnup.sh <<ANSWERS
y
ANSWERS
restart_ipsec
@ -1016,9 +1015,7 @@ jobs:
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
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
for ver in 3.32 4.1 4.2; do
[ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue
for ver in 4.4 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
y
@ -1033,10 +1030,9 @@ jobs:
wget -t 3 -T 30 -nv -O vpnup.sh https://git.io/vpnupgrade-ubuntu
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.3 4.4 4.5 4.6; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash
for ver in 4.5 4.6; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS
bash vpnup.sh <<ANSWERS
y
ANSWERS
restart_ipsec