core-agent-linux/package-managers/upgrades-status-notify
Marek Marczykowski-Górecki ce9f6b2fa7
Increase upgrades-status-notify verbosity
Print errors on stderr. yum_output variable isn't used anywhere, so
not capturing stderr wont be a problem either.
2021-01-03 04:55:10 +01:00

12 lines
342 B
Bash
Executable File

#!/bin/bash
set -e
upgrades_installed="$(/usr/lib/qubes/upgrades-installed-check)"
if [ "$upgrades_installed" = "true" ]; then
/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'echo 0'
elif [ "$upgrades_installed" = "false" ]; then
/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'echo 1'
fi