From cbd33cd5c6517555b7250aee38a003e886b81062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 13 Dec 2015 02:06:36 +0100 Subject: [PATCH] dom0-updates: remove unused code from cron job (cherry picked from commit d9a2a6607337b9e7265767c978cb043e2f596637) --- dom0-updates/qubes-dom0-updates.cron | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dom0-updates/qubes-dom0-updates.cron b/dom0-updates/qubes-dom0-updates.cron index 5d5825f..3c09d4a 100755 --- a/dom0-updates/qubes-dom0-updates.cron +++ b/dom0-updates/qubes-dom0-updates.cron @@ -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