mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-16 16:01:35 +00:00
Fix luci_forwarding with wrong configuration
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ set -Eeuo pipefail
|
||||
|
||||
info () { printf "%b%s%b" "\E[1;34m❯ \E[1;36m" "$1" "\E[0m\n"; }
|
||||
error () { printf "%b%s%b" "\E[1;31m❯ " "ERROR: $1" "\E[0m\n" >&2; }
|
||||
warn () { printf "%b%s%b" "\E[1;31m❯ " "Warning: $1" "\E[0m\n" >&2; }
|
||||
warn () { printf "%b%s%b" "\E[1;31m❯ " "Warning: $1" "\E[0m\n"; }
|
||||
|
||||
trap 'error "Status $? while: $BASH_COMMAND (line $LINENO/$BASH_LINENO)"' ERR
|
||||
|
||||
|
||||
+8
-10
@@ -77,21 +77,19 @@ if [[ $FORWARD_LUCI = "true" ]]; then
|
||||
if [[ $LAN_IF = "veth" ]]; then
|
||||
info "Enable LuCI forwading to host LAN at port 9000"
|
||||
|
||||
multirun \
|
||||
exec multirun \
|
||||
"/var/lib/script-server-env/bin/python /usr/share/script-server/launcher.py -d /var/script-server" \
|
||||
"nginx" \
|
||||
"/run/run_openwrt.sh" \
|
||||
"nsenter --target 1 --uts --net --ipc nginx -c /var/www/nginx-luci.conf"
|
||||
|
||||
else
|
||||
error "LuCI forwading is only available if enviroment variable is set to LAN_IF: 'veth'"
|
||||
warn "LuCI forwading is only available if enviroment variable is set to LAN_IF: 'veth'"
|
||||
fi
|
||||
else
|
||||
fi
|
||||
|
||||
# Start processes
|
||||
multirun \
|
||||
"/var/lib/script-server-env/bin/python /usr/share/script-server/launcher.py -d /var/script-server" \
|
||||
"nginx" \
|
||||
"/run/run_openwrt.sh"
|
||||
|
||||
fi
|
||||
# Start processes
|
||||
exec multirun \
|
||||
"/var/lib/script-server-env/bin/python /usr/share/script-server/launcher.py -d /var/script-server" \
|
||||
"nginx" \
|
||||
"/run/run_openwrt.sh"
|
||||
Reference in New Issue
Block a user