[FIX] nested url option replacement when $API_URLS contains url: .*, pattern (#4601)

This commit is contained in:
masacc
2018-06-01 22:24:22 +02:00
committed by kyle
parent 90157c1a40
commit a2fee7ed58

View File

@@ -55,7 +55,7 @@ fi
# replace `url` with `urls` option if API_URLS is set
if [[ -n "$API_URLS" ]]; then
sed -i "s|url: .*,|urls: $API_URLS,|g" $INDEX_FILE
sed -i "s|^\(\s*\)url: .*,|\1urls: $API_URLS,|g" $INDEX_FILE
fi
# replace the PORT that nginx listens on if PORT is supplied