non-interactive

This commit is contained in:
Bob Mottram 2016-10-20 21:45:02 +01:00
parent 5243ab9a2b
commit 591c3d7d8a
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ function add_cert_letsencrypt {
# stop the web server
systemctl stop nginx
certbot certonly --server $LETSENCRYPT_SERVER --standalone -d $LETSENCRYPT_HOSTNAME --renew-by-default --agree-tos --email $MY_EMAIL_ADDRESS
certbot certonly -n --server $LETSENCRYPT_SERVER --standalone -d $LETSENCRYPT_HOSTNAME --renew-by-default --agree-tos --email $MY_EMAIL_ADDRESS
if [ ! "$?" = "0" ]; then
echo $"Failed to install letsencrypt for domain $LETSENCRYPT_HOSTNAME"
systemctl start nginx