[24312] in Source-Commits

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

/svn/athena r23910 - trunk/debathena/scripts/installer

daemon@ATHENA.MIT.EDU (andrew m. boardman)
Thu Jul 9 15:29:56 2009

Date: Thu, 9 Jul 2009 15:29:44 -0400
From: "andrew m. boardman" <amb@MIT.EDU>
Message-Id: <200907091929.n69JTiZe021313@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: amb
Date: 2009-07-09 15:29:44 -0400 (Thu, 09 Jul 2009)
New Revision: 23910

Modified:
   trunk/debathena/scripts/installer/install-debathena.sh
Log:
Force UTC for the hardware clock.


Modified: trunk/debathena/scripts/installer/install-debathena.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.sh	2009-07-06 01:07:01 UTC (rev 23909)
+++ trunk/debathena/scripts/installer/install-debathena.sh	2009-07-09 19:29:44 UTC (rev 23910)
@@ -277,3 +277,11 @@
   output "Installing debathena-thirdparty"
   DEBIAN_PRIORITY=critical aptitude -y install debathena-thirdparty
 fi
+
+# Post-install cleanup for cluster systems.
+if [ cluster = "$category" ] ; then
+  # Force an /etc/adjtime entry so there's no confusion about whether the
+  # hardware clock is UTC or local.
+  echo "Setting hardware clock to UTC."
+  hwclock --systohc --utc
+fi


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