chore(deck): Add service and rules for passwordless forced updates

This commit is contained in:
RJ Trujillo 2023-09-14 19:40:12 -06:00
parent 36e073b459
commit 8c846eb203
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,8 @@
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel") &&
action.id == "org.freedesktop.systemd1.manage-units" &&
action.lookup("unit") == "ublue-update-force.service")
{
return polkit.Result.YES;
}
})

View File

@ -0,0 +1,7 @@
[Unit]
Description=Force Universal Blue Update Oneshot Service
[Service]
Type=oneshot
ExecStart=/usr/bin/ublue-update --force
RemainAfterExit=no