ce9f6b2fa7
Print errors on stderr. yum_output variable isn't used anywhere, so not capturing stderr wont be a problem either.
12 lines
342 B
Bash
Executable File
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
|