diff --git a/nginx/letsencrypt-autogen.sh b/nginx/letsencrypt-autogen.sh index ab5bf550..d5642070 100644 --- a/nginx/letsencrypt-autogen.sh +++ b/nginx/letsencrypt-autogen.sh @@ -23,7 +23,7 @@ fi # Stop nginx if needed (free the port used by the standalone server) nginx_was_running="NO" pgrep nginx -if [ $? -eq 0]; then +if [ $? -eq 0 ]; then killall nginx nginx_was_running="YES" fi