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:
parent
3a2081ffed
commit
08be68cda4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue