summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/root/etc/uci-defaults
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-04-22 12:00:15 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-06-10 08:44:58 +0200
commitf68e5c1071b0006cd62ca32ecbd349f028607d26 (patch)
tree28d5f3c4d28281e94e71f6ffd5ea1a3f7d58b6bd /applications/luci-app-dockerman/root/etc/uci-defaults
parent16f443bf4caf6e7dd85efd1ce111b45779acdf5e (diff)
luci-app-dockerman: initial checkin
Inital commit version v0.5.13 from https://github.com/lisaac/luci-app-dockerman Signed-off-by: Florian Eckert <fe@dev.tdt.de>
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