dom0-updates: add flag file for disabling update check (#800)

This commit is contained in:
Marek Marczykowski-Górecki 2014-04-11 07:04:57 +02:00
parent 0b850b931e
commit 84a9d12c48

View File

@ -5,6 +5,11 @@ LOCAL_USER=`users | sed -e 's/root *//' | cut -d' ' -f 1`
PIDFILE=/var/run/qubes/dom0-update-notification.pid PIDFILE=/var/run/qubes/dom0-update-notification.pid
NOTIFY_ICON=/usr/share/qubes/icons/dom0-update-avail.svg NOTIFY_ICON=/usr/share/qubes/icons/dom0-update-avail.svg
UPDATES_STAT_FILE=/var/lib/qubes/updates/dom0-updates-available UPDATES_STAT_FILE=/var/lib/qubes/updates/dom0-updates-available
UPDATES_DISABLE_FLAG=/var/lib/qubes/updates/disable-updates
if [ -f "$UPDATES_DISABLE_FLAG" ]; then
exit 0
fi
# Do not allow multiple instances # Do not allow multiple instances
[ -r $PIDFILE ] && kill -0 `cat $PIDFILE` && exit 0 [ -r $PIDFILE ] && kill -0 `cat $PIDFILE` && exit 0