Skip to content

Commit 2284f0d

Browse files
authored
Add ACL rule to compatible with trunk Luci requirement (coolsnowwolf#4323)
Add ACL rule to compatible with trunk Luci requirement
1 parent 2125e80 commit 2284f0d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

package/lean/luci-app-ssr-plus/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ define Package/$(PKG_NAME)/install
9494
$(INSTALL_DIR) $(1)/usr/share/shadowsocksr
9595
$(INSTALL_BIN) ./root/usr/share/shadowsocksr/*.sh $(1)/usr/share/shadowsocksr/
9696
$(INSTALL_DATA) ./root/usr/share/shadowsocksr/*.lua $(1)/usr/share/shadowsocksr/
97+
98+
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
99+
$(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d
97100

98101
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
99102
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"luci-app-ssr-plus": {
3+
"description": "Grant UCI access for luci-app-ssr-plus",
4+
"read": {
5+
"uci": [ "shadowsocksr" ]
6+
},
7+
"write": {
8+
"uci": [ "shadowsocksr" ]
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)