Add failure notification

This commit is contained in:
Gerald Pinder
2025-03-24 00:33:59 -04:00
parent 3c8b856e80
commit 9fda39638a

View File

@@ -6,4 +6,4 @@ ConditionPathExists=/run/ostree-booted
[Service] [Service]
Type=oneshot Type=oneshot
# ExecStart=/usr/bin/bootc update --apply --quiet # ExecStart=/usr/bin/bootc update --apply --quiet
ExecStart=/bin/bash -c '/usr/bin/bootc update --quiet && notify-send -u critical "Update Installed" "Reboot to apply updates"' ExecStart=/bin/bash -c '/usr/bin/bootc update --quiet && notify-send -a BlueBuild "Update Installed" "Reboot to apply updates" || notify-send -u critical -a BlueBuild "ERROR: UPDATE FAILED" "Update failed to download/install"'