diff --git a/nginx/letsencrypt-autogen.sh b/nginx/letsencrypt-autogen.sh index d5642070..f35ebbe8 100644 --- a/nginx/letsencrypt-autogen.sh +++ b/nginx/letsencrypt-autogen.sh @@ -22,7 +22,7 @@ fi # Stop nginx if needed (free the port used by the standalone server) nginx_was_running="NO" -pgrep nginx +pgrep nginx > /dev/null if [ $? -eq 0 ]; then killall nginx nginx_was_running="YES" diff --git a/start.sh b/start.sh index 2e9905bc..d5a38349 100755 --- a/start.sh +++ b/start.sh @@ -96,7 +96,7 @@ else # Check if we need to auto-generate SSL certs via letsencrypt if [ "$WO_SSL" = "YES" ] && [ -z "$WO_SSL_KEY" ]; then - bash -c "nginx/letsencrypt-autogen.sh" + source ./nginx/letsencrypt-autogen.sh fi # Check if SSL key/certs are available