From fd086968bcaa5f4ccc1e6cc7e5d5badbbed392d9 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 19 Jun 2020 14:08:40 +0200 Subject: luci-app-dockerman: move config_load into start function Signed-off-by: Florian Eckert --- applications/luci-app-dockerman/root/etc/init.d/dockerman | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/applications/luci-app-dockerman/root/etc/init.d/dockerman b/applications/luci-app-dockerman/root/etc/init.d/dockerman index 22629c193..601dcf9c7 100755 --- a/applications/luci-app-dockerman/root/etc/init.d/dockerman +++ b/applications/luci-app-dockerman/root/etc/init.d/dockerman @@ -3,9 +3,6 @@ START=99 DOCKERD_CONF="/etc/docker/daemon.json" -config_load dockerman -config_get daemon_ea "local" daemon_ea - init_dockerman_chain(){ iptables -N DOCKER-MAN >/dev/null 2>&1 iptables -F DOCKER-MAN >/dev/null 2>&1 @@ -31,6 +28,10 @@ handle_allowed_interface(){ start(){ [ ! -x "/etc/init.d/dockerd" ] && return 0 + + config_load dockerman + config_get daemon_ea "local" daemon_ea + init_dockerman_chain if [ -n "$daemon_ea" ]; then handle_allowed_interface -- cgit v1.2.3