mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
chore(deck): Add service and rules for passwordless forced updates
This commit is contained in:
parent
36e073b459
commit
8c846eb203
@ -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;
|
||||
}
|
||||
})
|
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Force Universal Blue Update Oneshot Service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/ublue-update --force
|
||||
RemainAfterExit=no
|
Loading…
x
Reference in New Issue
Block a user