From: mitty Date: Thu, 4 Jun 2009 08:18:33 +0000 (+0000) Subject: * ron script for check updated packages X-Git-Tag: r89-trunk~74 X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=f4ebcb814390ee122595f33134d8788cf637a80b;p=lab.git * ron script for check updated packages git-svn-id: https://lab.mitty.jp/svn/lab/trunk@4 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/cron.daily/apt-cron b/cron.daily/apt-cron new file mode 100755 index 0000000..ab151a7 --- /dev/null +++ b/cron.daily/apt-cron @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +/usr/bin/aptitude update > /dev/null 2>&1 + +if [ `/usr/bin/aptitude -s -y safe-upgrade | /bin/grep -c ^0` -eq 0 ]; then + /usr/bin/aptitude -s -y safe-upgrade | /bin/grep '^[ T0-9]' +fi