feat: Make webserver optional

This commit is contained in:
Kroese 2025-09-18 23:41:52 +02:00 committed by GitHub
parent 392cf45e81
commit c6b5f524d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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