From f4ebcb814390ee122595f33134d8788cf637a80b Mon Sep 17 00:00:00 2001 From: mitty Date: Thu, 4 Jun 2009 08:18:33 +0000 Subject: [PATCH] * ron script for check updated packages git-svn-id: https://lab.mitty.jp/svn/lab/trunk@4 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- cron.daily/apt-cron | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 cron.daily/apt-cron 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 -- 1.7.9.5