mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-04-07 13:20:58 +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() {
|
upgrade() {
|
||||||
# Pull exit code from ublue-update
|
# 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
|
echo $? > /tmp/upgrade-check
|
||||||
}
|
}
|
||||||
upgrade | fake_progress
|
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