diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 134c311..67cdfc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,6 @@ jobs: shopt -s globstar ls -ld -- **/*.sh shellcheck **/*.sh - shopt -u globstar test_set_1: runs-on: ubuntu-latest @@ -124,6 +123,7 @@ jobs: systemctl restart ipsec fi + sleep 10 grep "your_ipsec_pre_shared_key" /etc/ipsec.secrets grep "your_vpn_username" /etc/ppp/chap-secrets grep "your_vpn_password" /etc/ppp/chap-secrets @@ -162,8 +162,39 @@ jobs: ANSWERS ls -ld /etc/ipsec.d/vpnclient2*.p12 + + if [ "$1" = "centos" ]; then + sed -i '/pluto/d' /var/log/secure + pkill -HUP rsyslog + wget -t 3 -T 30 -nv -O vpnupgrade.sh https://git.io/vpnupgrade-centos + 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 + sh vpnupgrade.sh <