hotfix - fix API in autoconf swarm mode

This commit is contained in:
bunkerity
2021-04-28 17:40:54 +02:00
parent 3bb164395e
commit 07be626842
2 changed files with 3 additions and 2 deletions

View File

@@ -220,6 +220,7 @@ if [ "$USE_API" = "yes" ] ; then
API_URI="/$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
echo "[*] Generated API URI : $API_URI"
fi
replace_in_file "/etc/nginx/api.conf" "%API_URI%" "$API_URI"
else
replace_in_file "/etc/nginx/nginx.conf" "%USE_API%" ""
fi