1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Update tests

This commit is contained in:
hwdsl2 2024-10-14 22:13:05 -05:00
parent 9442981551
commit 2247387826
2 changed files with 8 additions and 8 deletions

View File

@ -518,13 +518,13 @@ jobs:
cp -f /opt/src/scripts/extras/vpnupgrade.sh ./vpnup.sh
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
for ver in 4.14 ""; do
for ver in 4.15 ""; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
ANSWERS
restart_ipsec
[ -z "$ver" ] && ver=5.0
[ -z "$ver" ] && ver=5.1
ipsec --version | grep "$ver"
ipsec status | grep -q l2tp-psk
ipsec status | grep -q xauth-psk
@ -538,13 +538,13 @@ jobs:
fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.15 ""; do
for ver in 5.0 ""; do
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
bash vpnup.sh <<ANSWERS
ANSWERS
restart_ipsec
[ -z "$ver" ] && ver=5.0
[ -z "$ver" ] && ver=5.1
ipsec --version | grep "$ver"
ipsec status | grep -q l2tp-psk
ipsec status | grep -q xauth-psk

View File

@ -494,7 +494,7 @@ jobs:
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
for ver in 4.14 ""; do
for ver in 4.15 ""; do
if [ "$os_type" = "alpine" ] \
|| grep -qs trixie /etc/debian_version; then
ipsec whack --shutdown || true
@ -504,7 +504,7 @@ jobs:
ANSWERS
restart_ipsec
[ -z "$ver" ] && ver=5.0
[ -z "$ver" ] && ver=5.1
ipsec --version | grep "$ver"
ipsec status | grep -q l2tp-psk
ipsec status | grep -q xauth-psk
@ -518,7 +518,7 @@ jobs:
fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 4.15 ""; do
for ver in 5.0 ""; do
if [ "$os_type" = "alpine" ] \
|| grep -qs trixie /etc/debian_version; then
ipsec whack --shutdown || true
@ -528,7 +528,7 @@ jobs:
ANSWERS
restart_ipsec
[ -z "$ver" ] && ver=5.0
[ -z "$ver" ] && ver=5.1
ipsec --version | grep "$ver"
ipsec status | grep -q l2tp-psk
ipsec status | grep -q xauth-psk