summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/root
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-06-19 14:08:40 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-07-13 12:54:27 +0200
commitfd086968bcaa5f4ccc1e6cc7e5d5badbbed392d9 (patch)
treecb38410cb7759878e2374a81352de99c9ea9f5c2 /applications/luci-app-dockerman/root
parent400140285a0aa12c801e0a7a9457a4a230b63b6a (diff)
luci-app-dockerman: move config_load into start function
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-dockerman/root')
-rwxr-xr-xapplications/luci-app-dockerman/root/etc/init.d/dockerman7
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