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

pull/151/head
Jérémy Dubois 1 year ago
parent 1fdc0f2566
commit 03c97f2d0f

@ -63,7 +63,7 @@ else
fi
# 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() {
# Already expired - Cert file

Loading…
Cancel
Save