summaryrefslogtreecommitdiffstats
path: root/source/n/openssl/certwatch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/openssl/certwatch')
-rw-r--r--source/n/openssl/certwatch7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/n/openssl/certwatch b/source/n/openssl/certwatch
index d52dc3dc4..f2f041d5f 100644
--- a/source/n/openssl/certwatch
+++ b/source/n/openssl/certwatch
@@ -17,13 +17,18 @@ MAILADDR=root
# Directory with certificates to check
CERTDIR=/etc/ssl/certs
# Directory where to keep state files if this script isnt executed with "stdout"
-STATEDIR=/var/run
+STATEDIR=/var/state/certwatch
########################### CONFIGURATION SECTION END ##########################
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAY_IN_SECS=$((60*60*24))
DATE_CURRENT=$(date '+%s')
+# Ensure $STATEDIR exists:
+if [ ! -d $STATEDIR ]; then
+ mkdir -p $STATEDIR
+fi
+
usage()
{
echo "Usage: $0 [stdout]"