feat: Make webserver optional (#1012)

This commit is contained in:
Kroese
2025-09-18 23:45:05 +02:00
committed by GitHub
parent 57a902ad9f
commit 095e618785
2 changed files with 23 additions and 14 deletions

View File

@@ -326,7 +326,7 @@ closeBridge() {
closeNetwork() {
if [[ "$DHCP" == [Yy1]* ]]; then
if [[ "${WEB:-}" != [Nn]* && "$DHCP" == [Yy1]* ]]; then
# Shutdown nginx
nginx -s stop 2> /dev/null
@@ -504,9 +504,13 @@ else
checkOS
fi
# Shutdown nginx
nginx -s stop 2> /dev/null
fWait "nginx"
if [[ "${WEB:-}" != [Nn]* ]]; then
# Shutdown nginx
nginx -s stop 2> /dev/null
fWait "nginx"
fi
if [[ "${NETWORK,,}" != "user"* ]]; then