* ron script for check updated packages
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 4 Jun 2009 08:18:33 +0000 (08:18 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 4 Jun 2009 08:18:33 +0000 (08:18 +0000)
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@4 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

cron.daily/apt-cron [new file with mode: 0755]

diff --git a/cron.daily/apt-cron b/cron.daily/apt-cron
new file mode 100755 (executable)
index 0000000..ab151a7
--- /dev/null
@@ -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