qubes-core-admin-linux/dom0-updates/qubes-dom0-updates.cron
Marek Marczykowski-Górecki c03fbecb4e
dom0-updates: use qvm-service for disabling dom0 updates check
Use the same mechanism as VMs - first it's compatible with Admin API (in
contrary to flag files); second it ease handling it.

Migrate old setting on package upgrade.
2018-12-04 21:04:09 +01:00

17 lines
347 B
Bash
Executable File

#!/bin/bash
if [ "$(qvm-features dom0 service.qubes-update-check || echo 1)" != 1 ]; then
exit 0
fi
# If no updates available - exit here
qubes-dom0-update --check-only >/dev/null && exit
RETCODE=$?
if [ "$RETCODE" -ne 100 ]; then
echo "ERROR: Error checking for updates" >&2
exit $RETCODE
fi
qvm-features dom0 updates-available 1