wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / debian / privoxy.cron.daily
1 #!/bin/sh
2 #
3 # Expire https inspection certificates
4
5 set -e
6
7 # skip in favour of systemd timer if called from cron.daily
8 if [ -d /run/systemd/system ] && [ "$1" != "systemd-timer" ]; then
9     exit 0
10 fi
11
12
13 CERTDIR=/var/lib/privoxy/certs
14 EXPIREDAYS=90
15
16 if [ -d $CERTDIR ]; then
17     find $CERTDIR -type f -mtime +$EXPIREDAYS -print0 | xargs -0 -r rm -f
18 fi