Sfoglia il codice sorgente

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
master
GK2 5 anni fa
parent
commit
08be68cda4
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      resources/install-letsencrypt-cert.sh

+ 3
- 0
resources/install-letsencrypt-cert.sh Vedi File

@@ -29,6 +29,9 @@ if [ ! -f certbot-auto ] ; then
29 29
 fi
30 30
 
31 31
 CRON_FILE="/etc/cron.weekly/letsencrypt-renew"
32
+if [ ! -d $"/etc/cron.weekly" ] ; then
33
+    mkdir "/etc/cron.weekly"
34
+fi
32 35
 echo "#!/bin/bash" > $CRON_FILE
33 36
 echo "/usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log" >> $CRON_FILE
34 37
 

Loading…
Annulla
Salva