Add a script to renew all certificates automatically

This commit is contained in:
Romain de Laage 2020-07-10 09:51:23 +02:00
parent 88ba4ca6ec
commit 2c45625659
1 changed files with 8 additions and 0 deletions

8
renew.sh Executable file
View File

@ -0,0 +1,8 @@
#! /bin/sh
# The aim of this script is to automatically renew the certificates installed on this machine.
# You should add a cron job to run this script and make it be executed each night.
service nginx stop
certbot renew --quiet
service nginx start