summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-dockerman/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-app-dockerman/root/etc/uci-defaults/luci-app-dockerman15
1 files changed, 15 insertions, 0 deletions
diff --git a/applications/luci-app-dockerman/root/etc/uci-defaults/luci-app-dockerman b/applications/luci-app-dockerman/root/etc/uci-defaults/luci-app-dockerman
new file mode 100755
index 0000000000..eab5d73547
--- /dev/null
+++ b/applications/luci-app-dockerman/root/etc/uci-defaults/luci-app-dockerman
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ set uhttpd.main.script_timeout="360"
+ commit uhttpd
+ delete ucitrack.@dockerman[-1]
+ add ucitrack dockerman
+ set ucitrack.@dockerman[-1].exec='/etc/init.d/dockerman start'
+ commit ucitrack
+EOF
+[ -x "$(which dockerd)" ] && chmod +x /etc/init.d/dockerman && /etc/init.d/dockerd disable && /etc/init.d/dockerman enable >/dev/null 2>&1
+sed -i 's/self:cfgvalue(section) or {}/self:cfgvalue(section) or self.default or {}/' /usr/lib/lua/luci/view/cbi/dynlist.htm
+/etc/init.d/uhttpd restart >/dev/null 2>&1
+rm -fr /tmp/luci-indexcache /tmp/luci-modulecache >/dev/null 2>&1
+exit 0 \ No newline at end of file