non-interactive
This commit is contained in:
parent
5243ab9a2b
commit
591c3d7d8a
|
@ -206,7 +206,7 @@ function add_cert_letsencrypt {
|
||||||
# stop the web server
|
# stop the web server
|
||||||
systemctl stop nginx
|
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
|
if [ ! "$?" = "0" ]; then
|
||||||
echo $"Failed to install letsencrypt for domain $LETSENCRYPT_HOSTNAME"
|
echo $"Failed to install letsencrypt for domain $LETSENCRYPT_HOSTNAME"
|
||||||
systemctl start nginx
|
systemctl start nginx
|
||||||
|
|
Loading…
Reference in New Issue