Browse Source

restart nginx

pull/6447/head
Jonny McCullagh 4 years ago
parent
commit
b60334cd3d
  1. 3
      hosting/letsencrypt/certificate-request.sh

3
hosting/letsencrypt/certificate-request.sh

@ -10,7 +10,6 @@ certbot certonly --webroot --webroot-path="/var/www/html" \
if (($? != 0)); then
echo "ERROR: certbot request failed for $CUSTOM_DOMAIN use http on port 80 - exiting"
nginx -s stop
exit 1
else
cp /app/letsencrypt/options-ssl-nginx.conf /etc/letsencrypt/options-ssl-nginx.conf
@ -20,5 +19,5 @@ else
ln -s /etc/nginx/sites-available/nginx-ssl.conf /etc/nginx/sites-enabled/nginx-ssl.conf
echo "INFO: restart nginx after certbot request"
nginx -s reload
/etc/init.d/nginx restart
fi

Loading…
Cancel
Save