summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/root')
-rw-r--r--applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev2
-rw-r--r--applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json15
2 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev
index 6f30fa77b7..4cc9abcee5 100644
--- a/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev
+++ b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev
@@ -8,4 +8,6 @@ uci -q batch <<-EOF >/dev/null
EOF
rm -f /tmp/luci-indexcache
+mkdir -p /etc/shadowsocks-libev
+/etc/init.d/rpcd reload
exit 0
diff --git a/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json b/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json
new file mode 100644
index 0000000000..eb56fd12a0
--- /dev/null
+++ b/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json
@@ -0,0 +1,15 @@
+{
+ "luci-app-shadowsocks-libev": {
+ "description": "Grant service list access to LuCI app shadowsocks-libev",
+ "read": {
+ "ubus": {
+ "service": [ "list" ]
+ }
+ },
+ "write": {
+ "file": {
+ "/etc/shadowsocks-libev/*": [ "write" ]
+ }
+ }
+ }
+}