openvpn: fix last_openvpn_restart_date variable
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Jérémy Dubois 2022-02-15 18:06:13 +01:00
parent 1fdc0f2566
commit 03c97f2d0f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ else
fi fi
# Get the date of last OpenVPN restart # Get the date of last OpenVPN restart
last_openvpn_restart_date=$(ps awwwx -O lstart | grep openvpn | grep -vE "grep|check_openvpn_certificates.sh" | awk '{print $3,$4,$5,$6}') last_openvpn_restart_date=$(ps awwwx -O lstart | grep openvpn | grep -- --daemon | grep -- --config | head -1 | awk '{print $3,$4,$5,$6}')
test_cert_expiration() { test_cert_expiration() {
# Already expired - Cert file # Already expired - Cert file