diff options
author | Christian Korber <ckorber@tdt.de> | 2024-11-15 09:18:17 +0100 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-11-23 01:03:05 +0100 |
commit | 03f37cff4c1cd73993284779f92c4982d30aa2bd (patch) | |
tree | 3e111a96809bb4b3f4cf38f9b248f5c190547693 /applications/luci-app-keepalived/root/usr/share | |
parent | a4a5cf6af7035a21abc98959747f157a0b453fb5 (diff) |
luci-app-keepalived: add notification tab
This commit adds a tab to modify keepalived.user file.
With this commit it is possible to issue custom commands.
Signed-off-by: Christian Korber <ckorber@tdt.de>
Diffstat (limited to 'applications/luci-app-keepalived/root/usr/share')
-rw-r--r-- | applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json | 9 | ||||
-rw-r--r-- | applications/luci-app-keepalived/root/usr/share/rpcd/acl.d/luci-app-keepalived.json | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json b/applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json index 93c741918a..3afc43eed4 100644 --- a/applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json +++ b/applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json @@ -98,6 +98,15 @@ } }, + "admin/services/keepalived/notification": { + "title": "Notification", + "order": 150, + "action": { + "type": "view", + "path": "keepalived/notification" + } + }, + "admin/status/keepalived": { "title": "VRRP", "order": 10, diff --git a/applications/luci-app-keepalived/root/usr/share/rpcd/acl.d/luci-app-keepalived.json b/applications/luci-app-keepalived/root/usr/share/rpcd/acl.d/luci-app-keepalived.json index 0c8b676e61..c83054408c 100644 --- a/applications/luci-app-keepalived/root/usr/share/rpcd/acl.d/luci-app-keepalived.json +++ b/applications/luci-app-keepalived/root/usr/share/rpcd/acl.d/luci-app-keepalived.json @@ -5,12 +5,16 @@ "ubus" : { "keepalived" : [ "*" ] }, - "uci": [ "keepalived" ] + "uci": [ "keepalived" ], + "file": { + "/etc/keepalived.user": [ "read" ] + } }, "write" : { "uci": [ "keepalived" ], "file" : { - "/etc/keepalived/keys/*" : [ "write" ] + "/etc/keepalived/keys/*" : [ "write" ], + "/etc/keepalived.user": [ "write" ] } } } |