aboutsummaryrefslogtreecommitdiff
path: root/net/acme/files/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/acme/files/run.sh')
-rw-r--r--net/acme/files/run.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/acme/files/run.sh b/net/acme/files/run.sh
index eccd3cb18..5c9361f4f 100644
--- a/net/acme/files/run.sh
+++ b/net/acme/files/run.sh
@@ -77,6 +77,11 @@ pre_checks()
case "$cmd" in
uhttpd)
+ if [ -n "$UHTTPD_LISTEN_HTTP" ]; then
+ debug "Already handled uhttpd; skipping"
+ continue
+ fi
+
debug "Found uhttpd listening on port 80; trying to disable."
UHTTPD_LISTEN_HTTP=$(uci get uhttpd.main.listen_http)
@@ -96,6 +101,11 @@ pre_checks()
fi
;;
nginx*)
+ if [ "$NGINX_WEBSERVER" -eq "1" ]; then
+ debug "Already handled nginx; skipping"
+ continue
+ fi
+
debug "Found nginx listening on port 80; trying to disable."
NGINX_WEBSERVER=1
local tries=0