Procházet zdrojové kódy

Moving certbot crontab

master
Miguel Gagliardo před 5 měsíci
rodič
revize
8162e68ec9
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      install.sh

+ 3
- 3
install.sh Zobrazit soubor

@@ -214,9 +214,6 @@ systemctl enable --now nginx
214 214
 echo -e "Generate SSL cert\n"
215 215
 certbot --nginx -d ${DOMAIN} --agree-tos --register-unsafely-without-email
216 216
 
217
-# Add certbot SSL cert renewal to crontab
218
-crontab -l | { cat; echo '43 6 * * * certbot renew --post-hook "systemctl reload nginx"'; } | crontab -
219
-
220 217
 # Add custom 8448 SSL port for Matrix Federation
221 218
 sed -i '/listen\ 443\ ssl/a\\tlisten\ 8448\ ssl\;' /etc/nginx/sites-enabled/default
222 219
 nginx -s reload
@@ -227,3 +224,6 @@ systemctl enable --now coturn
227 224
 # Finally, start services
228 225
 # Ensuring the DB dir is clean before bootstrapping
229 226
 systemctl enable --now matrix.service
227
+
228
+# Add certbot SSL cert renewal to crontab
229
+crontab -l | { cat; echo '43 6 * * * certbot renew --post-hook "systemctl reload nginx"'; } | crontab -

Načítá se…
Zrušit
Uložit