Sfoglia il codice sorgente

[Dovecot] Retry sa-rules download (1, 2, 4, 8, 16 ... seconds)

andryyy 5 anni fa
parent
commit
d0788372fe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      data/Dockerfiles/dovecot/sa-rules.sh

+ 1 - 1
data/Dockerfiles/dovecot/sa-rules.sh

@@ -13,7 +13,7 @@ fi
 
 
 # Deploy
 # Deploy
 ## Heinlein
 ## Heinlein
-curl --connect-timeout 15 --max-time 30 http://www.spamassassin.heinlein-support.de/$(dig txt 1.4.3.spamassassin.heinlein-support.de +short | tr -d '"').tar.gz --output /tmp/sa-rules-heinlein.tar.gz
+curl --connect-timeout 15 --retry 10 --max-time 30 http://www.spamassassin.heinlein-support.de/$(dig txt 1.4.3.spamassassin.heinlein-support.de +short | tr -d '"').tar.gz --output /tmp/sa-rules-heinlein.tar.gz
 if gzip -t /tmp/sa-rules-heinlein.tar.gz; then
 if gzip -t /tmp/sa-rules-heinlein.tar.gz; then
   tar xfvz /tmp/sa-rules-heinlein.tar.gz -C /tmp/sa-rules-heinlein
   tar xfvz /tmp/sa-rules-heinlein.tar.gz -C /tmp/sa-rules-heinlein
   cat /tmp/sa-rules-heinlein/*cf > /etc/rspamd/custom/sa-rules
   cat /tmp/sa-rules-heinlein/*cf > /etc/rspamd/custom/sa-rules