mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
Merge pull request #301 from ublue-os/rootful-ublue-update
feat: Implement changes for rootful ublue-update
This commit is contained in:
commit
ab1ca9fa77
@ -61,7 +61,7 @@ if command -v ublue-update > /dev/null; then
|
||||
}
|
||||
upgrade() {
|
||||
# Pull exit code from ublue-update
|
||||
ublue-update --force > /dev/null 2>&1
|
||||
systemctl start ublue-update-force > /dev/null 2>&1
|
||||
echo $? > /tmp/upgrade-check
|
||||
}
|
||||
upgrade | fake_progress
|
||||
|
@ -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