From 2c74b9f17382e0a2690e6b041e35c235089977bb Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 17 Nov 2017 16:16:52 -0500 Subject: [PATCH] Changed script invokation --- nginx/letsencrypt-autogen.sh | 2 +- start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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