[25444] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r24988 - trunk/debathena/config/auto-update/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue Mar 1 11:48:49 2011

Date: Tue, 1 Mar 2011 11:48:43 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201103011648.p21GmhSp024868@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-03-01 11:48:42 -0500 (Tue, 01 Mar 2011)
New Revision: 24988

Modified:
   trunk/debathena/config/auto-update/debian/debathena-auto-update.postinst
Log:
Remove old cron.d file in postinst

Modified: trunk/debathena/config/auto-update/debian/debathena-auto-update.postinst
===================================================================
--- trunk/debathena/config/auto-update/debian/debathena-auto-update.postinst	2011-02-28 15:30:59 UTC (rev 24987)
+++ trunk/debathena/config/auto-update/debian/debathena-auto-update.postinst	2011-03-01 16:48:42 UTC (rev 24988)
@@ -42,6 +42,11 @@
 	    [ -f /var/lib/athena-update-status ]; then
 	    rm /var/lib/athena-update-status
 	fi
+	
+	# We stopped shipping our own cron.d file, so remove it.
+	if dpkg --compare-versions "$2" lt 1.22~; then
+	    rm -f /etc/cron.d/debathena-auto-update
+	fi
 
         if [ ! -f /var/lib/athena-update-status ]; then
 	    echo "$(date +"%s")|$(date +"%s")|ok|Package configured" > /var/lib/athena-update-status


home help back first fref pref prev next nref lref last post