Moving certbot crontab

This commit is contained in:
Miguel Gagliardo 2024-04-10 18:16:08 +01:00
parent 969187d956
commit 8162e68ec9
1 changed files with 3 additions and 3 deletions

View File

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