mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
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:
parent
0f7da9e690
commit
bccaa1bbee
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue