upgrades-status-notify 345 B

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