|
|
|
|
206
|
# stop the web server
|
206
|
# stop the web server
|
207
|
systemctl stop nginx
|
207
|
systemctl stop nginx
|
208
|
|
208
|
|
209
|
- certbot certonly --server $LETSENCRYPT_SERVER --standalone -d $LETSENCRYPT_HOSTNAME --renew-by-default --agree-tos --email $MY_EMAIL_ADDRESS
|
|
|
|
|
209
|
+ certbot certonly -n --server $LETSENCRYPT_SERVER --standalone -d $LETSENCRYPT_HOSTNAME --renew-by-default --agree-tos --email $MY_EMAIL_ADDRESS
|
210
|
if [ ! "$?" = "0" ]; then
|
210
|
if [ ! "$?" = "0" ]; then
|
211
|
echo $"Failed to install letsencrypt for domain $LETSENCRYPT_HOSTNAME"
|
211
|
echo $"Failed to install letsencrypt for domain $LETSENCRYPT_HOSTNAME"
|
212
|
systemctl start nginx
|
212
|
systemctl start nginx
|