1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/phrik/files/20-manage-phrik.rules
Jelle van der Waa 5078e2107d phrik: reduce access and allow restarting in phrik group
Reduce the access to phrik.archlinux.org to only demize by for now
defines arch_users in phrik's host_vars. Add a polkit rule to allow
users in the phrik group to restart phrik.
2019-11-22 18:52:55 +01:00

8 lines
241 B
Plaintext

polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" &&
action.lookup("unit") == "phrik.service" &&
subject.isInGroup("phrik")) {
return polkit.Result.YES;
}
});