1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

restart nginx

This commit is contained in:
Jonny McCullagh 2022-06-23 15:08:56 +01:00
parent d7c11cfc46
commit af5d1c9647

View file

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