Skip to content

Commit

Permalink
Redirect stderr to /dev/null when regenerating the CRL from cron
Browse files Browse the repository at this point in the history
  • Loading branch information
kyl191 committed Dec 24, 2024
1 parent 05ddd55 commit 0656121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/crl-cron.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ nextUpdate=$(date --date "$(openssl crl -in {{ openvpn_key_dir }}/ca-crl.pem -no
now=$(date +%s)

if [ $(( (nextUpdate - now) / 86400 )) -le 10 ]; then
sh {{ openvpn_key_dir }}/revoke.sh
sh {{ openvpn_key_dir }}/revoke.sh 2>/dev/null
fi

0 comments on commit 0656121

Please sign in to comment.