Fix for #1234 & CI/CD Fine-tunning

Changed Exit code from 1 to 0
Added some more checks
Changed order some checks are done
This commit is contained in:
4s3ti 2021-01-28 01:33:03 +01:00
parent 0f7da9e690
commit bccaa1bbee
2 changed files with 7 additions and 4 deletions

View file

@ -65,9 +65,9 @@ jobs:
- pivpn add -o -n foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -r foo -y
- pivpn -l
- pivpn -c
- pivpn -r foo -y
after_fail:
- sudo journalctl -xe
@ -84,6 +84,7 @@ jobs:
- pivpn add -n foo
- pivpn -qr foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -l
- pivpn -c
- pivpn -r foo -y
@ -108,9 +109,9 @@ jobs:
- pivpn add -o -n foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -r foo -y
- pivpn -l
- pivpn -c
- pivpn -r foo -y
after_fail:
- sudo journalctl -xe
@ -129,6 +130,7 @@ jobs:
- pivpn add -n foo
- pivpn -qr foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -l
- pivpn -c
- pivpn -r foo -y
@ -151,9 +153,9 @@ jobs:
- pivpn add -o -n foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -r foo -y
- pivpn -l
- pivpn -c
- pivpn -r foo -y
after_fail:
- sudo journalctl -xe
@ -171,6 +173,7 @@ jobs:
- pivpn add -n foo
- pivpn -qr foo
- pivpn -bk
- ls ~pi/pivpnbackup/ | grep backup
- pivpn -l
- pivpn -c
- pivpn -r foo -y

View file

@ -6,7 +6,7 @@ CONF_FILE="/etc/wireguard/wg0.conf"
if [ ! -s "$CLIENTS_FILE" ]; then
echo "::: There are no clients to list"
exit 1
exit 0
fi
scriptusage(){