polkit updates
This commit is contained in:
@ -72,16 +72,22 @@
|
|||||||
polkit.extraConfig = ''
|
polkit.extraConfig = ''
|
||||||
// Allow to manage podman services
|
// Allow to manage podman services
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.user == "christoph" &&
|
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.user == "christoph" && (
|
||||||
(action.lookup("unit") == "podman-jellyfin.service" ||
|
// HomeLab Selfhosted Services
|
||||||
action.lookup("unit") == "podman-sonarr.service" ||
|
action.lookup("unit") == "podman-jellyfin.service" ||
|
||||||
action.lookup("unit") == "podman-sabnzbd.service" ||
|
action.lookup("unit") == "podman-sonarr.service" ||
|
||||||
action.lookup("unit") == "podman-hydra.service" ||
|
action.lookup("unit") == "podman-radarr.service" ||
|
||||||
action.lookup("unit") == "podman-homeassistant.service" ||
|
action.lookup("unit") == "podman-hydra.service" ||
|
||||||
action.lookup("unit") == "podman-picard.service" ||
|
action.lookup("unit") == "podman-sabnzbd.service" ||
|
||||||
action.lookup("unit") == "podman-radarr.service" ||
|
action.lookup("unit") == "podman-homeassistant.service" ||
|
||||||
action.lookup("unit") == "wg0-LU-16.service" ||
|
|
||||||
action.lookup("unit") == "wg0-DE-115.service")) {
|
// Various Containers
|
||||||
|
action.lookup("unit") == "podman-stablediffusion.service" ||
|
||||||
|
|
||||||
|
// VPNs
|
||||||
|
action.lookup("unit") == "wg0-LU-16.service" ||
|
||||||
|
action.lookup("unit") == "wg0-DE-115.service"
|
||||||
|
)) {
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user