[25373] in Source-Commits
/svn/athena r24933 - trunk/debathena/config/auto-update/debian
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Feb 3 12:51:54 2011
Date: Thu, 3 Feb 2011 12:51:47 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201102031751.p13Hplti017989@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jdreed
Date: 2011-02-03 12:51:47 -0500 (Thu, 03 Feb 2011)
New Revision: 24933
Modified:
trunk/debathena/config/auto-update/debian/control.in
trunk/debathena/config/auto-update/debian/debathena-auto-update.cron.d
Log:
Don't inadvertantly disable auto-upgrades
Modified: trunk/debathena/config/auto-update/debian/control.in
===================================================================
--- trunk/debathena/config/auto-update/debian/control.in 2011-02-03 16:23:33 UTC (rev 24932)
+++ trunk/debathena/config/auto-update/debian/control.in 2011-02-03 17:51:47 UTC (rev 24933)
@@ -7,6 +7,6 @@
Package: debathena-auto-update
Architecture: all
-Depends: ${misc:Depends}, bsdutils, debathena-desync, cron, aptitude, apt-file, kexec-tools
+Depends: ${misc:Depends}, bsdutils, debathena-desync, cron, aptitude, apt-file, kexec-tools, at
Description: Performs automatic updates for Athena machines.
This package performs automatic updates for Athena machines.
Modified: trunk/debathena/config/auto-update/debian/debathena-auto-update.cron.d
===================================================================
--- trunk/debathena/config/auto-update/debian/debathena-auto-update.cron.d 2011-02-03 16:23:33 UTC (rev 24932)
+++ trunk/debathena/config/auto-update/debian/debathena-auto-update.cron.d 2011-02-03 17:51:47 UTC (rev 24933)
@@ -3,5 +3,6 @@
#min hour mday mon wday user command
0,15,30,45 * * * * root /usr/sbin/athena-auto-update cron
-0 2 * * * root /usr/sbin/athena-auto-upgrade
+0 2 * * * root echo "/usr/sbin/athena-auto-upgrade" | at "now + $(desync -n 360) minutes" 2>&1 | egrep -v "(job [0-9]+ at)|(^warning: commands will be executed using /bin/sh)"
+