Explorar o código

debian/apt.cron.daily: test for both existance of dbus-send and if dbus-daemon is actually running

Michael Vogt %!s(int64=18) %!d(string=hai) anos
pai
achega
f9b4616d1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      debian/apt.cron.daily

+ 1 - 1
debian/apt.cron.daily

@@ -210,7 +210,7 @@ fi
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 if check_stamp $UPDATE_STAMP $UpdateInterval; then
 if check_stamp $UPDATE_STAMP $UpdateInterval; then
     if apt-get -qq update 2>/dev/null; then
     if apt-get -qq update 2>/dev/null; then
-        if pidof dbus-daemon >/dev/null; then
+        if which dbus-send >/dev/null && pidof dbus-daemon >/dev/null; then
             dbus-send --system / app.apt.dbus.updated boolean:true
             dbus-send --system / app.apt.dbus.updated boolean:true
         fi
         fi
         update_stamp $UPDATE_STAMP
         update_stamp $UPDATE_STAMP