diff --git a/scripts/nginx_config_create.sh b/scripts/nginx_config_create.sh index 5cc050f..ca22efd 100755 --- a/scripts/nginx_config_create.sh +++ b/scripts/nginx_config_create.sh @@ -58,7 +58,7 @@ add_location() { ALP_LOCAL_ALLOWED_NETWORK=$(echo $ALP | jq -rc '.LOCAL_ALLOWED_NETWORK | select(.!="null") | join(" ")'); # do not duplicate locations - EXISTS=$(grep -rn "location /$ALP_LOCAL_PATH {" -m 1 $DOMAIN_NAME.conf); + EXISTS=$(grep -rn "location $ALP_LOCAL_PATH {" -m 1 $DOMAIN_NAME.conf); if [ -n "$EXISTS" ]; then # skip if exists continue;