From 03f37cff4c1cd73993284779f92c4982d30aa2bd Mon Sep 17 00:00:00 2001 From: Christian Korber Date: Fri, 15 Nov 2024 09:18:17 +0100 Subject: 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 --- .../root/usr/share/luci/menu.d/luci-app-keepalived.json | 9 +++++++++ .../root/usr/share/rpcd/acl.d/luci-app-keepalived.json | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-keepalived/root/usr/share') 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" ] } } } -- cgit v1.2.3