[23282] in Source-Commits

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

/svn/athena r22941 - trunk/debathena/debathena/debathena-afuse-automounter/debian

daemon@ATHENA.MIT.EDU (tabbott@MIT.EDU)
Tue Apr 22 16:23:52 2008

Date: Tue, 22 Apr 2008 16:23:19 -0400 (EDT)
From: tabbott@MIT.EDU
Message-Id: <200804222023.QAA01469@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: tabbott
Date: 2008-04-22 16:23:18 -0400 (Tue, 22 Apr 2008)
New Revision: 22941

Modified:
   trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst
Log:
More robust upgrade handling.


Modified: trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst
===================================================================
--- trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst	2008-04-22 20:18:38 UTC (rev 22940)
+++ trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst	2008-04-22 20:23:18 UTC (rev 22941)
@@ -21,7 +21,7 @@
 case "$1" in
     configure)
 	# Need to be clever with removing debathena-autofs-config.
-	if [ -n "$2" ] || pgrep -xf "/usr/sbin/automount --pid-file=/var/run/autofs/_mit.pid --timeout=86400 /mit hesiod" > /dev/null; then
+	if [ -n "$2" ] || pgrep -f "/usr/sbin/automount --pid-file=/var/run/autofs/_mit.pid .* /mit hesiod" > /dev/null; then
 	    if [ -n "$2" ]; then
 		echo "This is an upgrade from version $2; not restarting afuse automounter"
 	    else


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