Ver código fonte

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 anos atrás
pai
commit
08be68cda4
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      resources/install-letsencrypt-cert.sh

+ 3
- 0
resources/install-letsencrypt-cert.sh Ver arquivo

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

Carregando…
Cancelar
Salvar