diff options
Diffstat (limited to 'applications/luci-app-tinyproxy/root')
3 files changed, 8 insertions, 29 deletions
diff --git a/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json index 1d7ea3dc59..a362c1571d 100644 --- a/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json +++ b/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json @@ -2,30 +2,8 @@ "admin/services/tinyproxy": { "title": "Tinyproxy", "action": { - "type": "firstchild" - }, - "depends": { - "acl": [ "luci-app-tinyproxy" ], - "uci": { "tinyproxy": true } - } - }, - - "admin/services/tinyproxy/status": { - "title": "Status", - "order": 1, - "action": { - "type": "template", - "path": "tinyproxy_status" - } - }, - - "admin/services/tinyproxy/config": { - "title": "Configuration", - "order": 2, - "action": { - "type": "cbi", - "path": "tinyproxy", - "post": { "cbi.submit": true } + "type": "view", + "path": "tinyproxy/tinyproxy" } } } diff --git a/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json index db72bebef5..c0c4a4449b 100644 --- a/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json +++ b/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json @@ -2,7 +2,12 @@ "luci-app-tinyproxy": { "description": "Grant UCI access for luci-app-tinyproxy", "read": { - "uci": [ "tinyproxy" ] + "uci": [ "tinyproxy" ], + "file": { + "/usr/bin/wget -q http://127.0.0.1:[0-9]*/ -O -": [ "exec" ], + "/etc/init.d/tinyproxy reload": ["exec"], + "/etc/init.d/tinyproxy restart": ["exec"] + } }, "write": { "uci": [ "tinyproxy" ] diff --git a/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json deleted file mode 100644 index 252144ffee..0000000000 --- a/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "config": "tinyproxy", - "init": "tinyproxy" -} |