diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-06-19 14:08:40 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-07-13 12:54:27 +0200 |
commit | fd086968bcaa5f4ccc1e6cc7e5d5badbbed392d9 (patch) | |
tree | cb38410cb7759878e2374a81352de99c9ea9f5c2 | |
parent | 400140285a0aa12c801e0a7a9457a4a230b63b6a (diff) |
luci-app-dockerman: move config_load into start function
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rwxr-xr-x | applications/luci-app-dockerman/root/etc/init.d/dockerman | 7 |
1 files 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 22629c1933..601dcf9c7c 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 |