[24139] in Source-Commits

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

/svn/athena r23741 - trunk/debathena/config/afs-config/debian

daemon@ATHENA.MIT.EDU (Evan Broder)
Mon Apr 13 12:49:00 2009

Date: Mon, 13 Apr 2009 12:48:50 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200904131648.n3DGmonZ016709@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: broder
Date: 2009-04-13 12:48:49 -0400 (Mon, 13 Apr 2009)
New Revision: 23741

Modified:
   trunk/debathena/config/afs-config/debian/changelog
   trunk/debathena/config/afs-config/debian/debathena-afs-config.postinst
Log:
In afs-config:
  * Only attempt to run update-cellservdb if AFS is currently running. If
    it's not, then AFS will take the CSDB update when it next starts.


Modified: trunk/debathena/config/afs-config/debian/changelog
===================================================================
--- trunk/debathena/config/afs-config/debian/changelog	2009-04-12 18:05:09 UTC (rev 23740)
+++ trunk/debathena/config/afs-config/debian/changelog	2009-04-13 16:48:49 UTC (rev 23741)
@@ -1,3 +1,10 @@
+debathena-afs-config (1.9) unstable; urgency=low
+
+  * Only attempt to run update-cellservdb if AFS is currently running. If
+    it's not, then AFS will take the CSDB update when it next starts.
+
+ -- Evan Broder <broder@mit.edu>  Mon, 13 Apr 2009 12:48:16 -0400
+
 debathena-afs-config (1.8) unstable; urgency=low
 
   * Add script to `fs newcell` any cells that are out of date according to

Modified: trunk/debathena/config/afs-config/debian/debathena-afs-config.postinst
===================================================================
--- trunk/debathena/config/afs-config/debian/debathena-afs-config.postinst	2009-04-12 18:05:09 UTC (rev 23740)
+++ trunk/debathena/config/afs-config/debian/debathena-afs-config.postinst	2009-04-13 16:48:49 UTC (rev 23741)
@@ -27,7 +27,9 @@
 	else
 	    /etc/init.d/openafs-client restart || true
 	fi
-	update-cellservdb
+	if [ -n "$(mount -t afs)" ]; then
+            update-cellservdb
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)


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