Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

GK208be68cda46a
diff --git a/resources/install-letsencrypt-cert.sh b/resources/install-letsencrypt-cert.sh
index 1163cf4022..73f66f2672 100755
--- a/resources/install-letsencrypt-cert.sh
+++ b/resources/install-letsencrypt-cert.sh
@@ -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