From 60c61458364d4010c8ec7380989c95b34f79251f Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 26 Oct 2019 01:26:25 -0700 Subject: [PATCH] nginx: Fix invalid config when no services deployed ie. for a thrimbletrimmer-only node. --- nginx/generate-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/generate-config b/nginx/generate-config index 17f846d..9726f78 100755 --- a/nginx/generate-config +++ b/nginx/generate-config @@ -9,7 +9,7 @@ generate_location() { } LOCATIONS=$( - echo "$SERVICES" | while read name port; do + [ -n "$SERVICES" ] && echo "$SERVICES" | while read name port; do # restreamer is the catch-all [ "$name" == "restreamer" ] && generate_location / "http://restreamer:$port" # thrimshim takes any calls to thrimshim/