debian: fix install-letsencrypt-cert.sh to create misssing directory

Update install-letsencrypt-cert.sh to fix missing cron.weekly
REFS : https://github.com/jitsi/jitsi-meet/issues/5576
This commit is contained in:
GK2
2020-04-02 15:10:27 +02:00
committed by GitHub
parent 3a2081ffed
commit 08be68cda4
+3
View File
@@ -29,6 +29,9 @@ if [ ! -f certbot-auto ] ; then
fi
CRON_FILE="/etc/cron.weekly/letsencrypt-renew"
if [ ! -d $"/etc/cron.weekly" ] ; then
mkdir "/etc/cron.weekly"
fi
echo "#!/bin/bash" > $CRON_FILE
echo "/usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log" >> $CRON_FILE