Przeglądaj źródła

Moving certbot crontab

master
Miguel Gagliardo 5 miesięcy temu
rodzic
commit
8162e68ec9
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      install.sh

+ 3
- 3
install.sh Wyświetl plik

@@ -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 -

Ładowanie…
Anuluj
Zapisz