Commits

Andriy Kornatskyy  committed e14aa79

While running by cron use fullpath to binaries

  • Participants
  • Parent commits ee66ebc

Comments (0)

Files changed (2)

     exit 0
 fi
 
-has_upgrades=$(apt-get -s upgrade | grep ^Inst)
+has_upgrades=$(apt-get -s dist-upgrade | grep ^Inst)
 if [ "$has_upgrades" ] ; then
     #echo "Sending updates report."
     echo "$has_upgrades" | mail -s \

File func/random_sleep

     if [ ! -z $2 ]; then rnd_max=$2; fi
 
     # shift is a number betweem 0 and 600
-    shift=`ifconfig eth0 | grep HWaddr | \
-        sed -e 's/.*HWaddr //' | tr -d ':'`
+    shift=`/sbin/ifconfig eth0 | /bin/grep HWaddr | \
+        /bin/sed -e 's/.*HWaddr //' | /usr/bin/tr -d ':'`
     shift=$((0x$shift%$shift_max))
 
     # Sleep a random amount of time + shift