dom0-updates: remove unused code from cron job

This commit is contained in:
Marek Marczykowski-Górecki 2015-12-13 02:06:36 +01:00
parent 55f67d602e
commit d9a2a66073
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,7 +1,5 @@
#!/bin/bash
# Get normal user name
LOCAL_USER=`users | sed -e 's/root *//' | cut -d' ' -f 1`
NOTIFY_ICON=/usr/share/qubes/icons/dom0-update-avail.svg
UPDATES_STAT_FILE=/var/lib/qubes/updates/dom0-updates-available
UPDATES_DISABLE_FLAG=/var/lib/qubes/updates/disable-updates
@ -19,10 +17,5 @@ if [ "$RETCODE" -ne 100 ]; then
exit $RETCODE
fi
if [ -z "$LOCAL_USER" ]; then
echo "ERROR: no user logged in, cannot nofity about updates" >&2
exit 1
fi
# Touch stat file for qubes-manager
touch $UPDATES_STAT_FILE