From d7145be3b4045177b6ffece1d29db91547dc268f Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 5 Feb 2021 15:45:17 +0100 Subject: [PATCH] Create required folder. --- start-nginx.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/start-nginx.sh b/start-nginx.sh index 16ee0bd..fce5338 100755 --- a/start-nginx.sh +++ b/start-nginx.sh @@ -25,6 +25,7 @@ sub_env_vars="$(cat /environment_variables.txt)" echo "Enabling servers" ( pushd "/etc/nginx/sites-available" || exit $? + mkdir "../sites-enabled" || exit $? for f in *.conf; do envsubst "$sub_env_vars" < "$f" > "../sites-enabled/$f" done