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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user