BlueGit

timfa bluegit

Files

bluegit / packaging / bluegit-backup-update.rules

bluegit-backup-update.rules

bluegit-backup-update.rules 405 B Download Raw
1// Alleen gebruiker bluegit-backup mag deze ene unit starten.
2polkit.addRule(function(action, subject) {
3 if (action.id != "org.freedesktop.systemd1.manage-units") {
4 return;
5 }
6 if (subject.user != "bluegit-backup") {
7 return;
8 }
9 if (action.lookup("verb") == "start" && action.lookup("unit") == "bluegit-backup-update.service") {
10 return polkit.Result.YES;
11 }
12});