mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
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.
8 lines
241 B
Plaintext
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;
|
|
}
|
|
});
|