[23255] in Source-Commits

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

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

daemon@ATHENA.MIT.EDU (tabbott@MIT.EDU)
Mon Apr 21 16:22:50 2008

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

Author: tabbott
Date: 2008-04-21 16:22:21 -0400 (Mon, 21 Apr 2008)
New Revision: 22916

Modified:
   trunk/debathena/debathena/debathena-afuse-automounter/debian/changelog
   trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.init
   trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst
Log:
In debathena-afuse-automounter:
  * Fix transition from autofs to afuse -- /mit gets deleted for some
    reason.


Modified: trunk/debathena/debathena/debathena-afuse-automounter/debian/changelog
===================================================================
--- trunk/debathena/debathena/debathena-afuse-automounter/debian/changelog	2008-04-21 20:21:23 UTC (rev 22915)
+++ trunk/debathena/debathena/debathena-afuse-automounter/debian/changelog	2008-04-21 20:22:21 UTC (rev 22916)
@@ -1,3 +1,10 @@
+debathena-afuse-automounter (1.1) unstable; urgency=low
+
+  * Fix transition from autofs to afuse -- /mit gets deleted for some
+    reason.
+
+ -- Tim Abbott <tabbott@mit.edu>  Mon, 21 Apr 2008 14:14:07 -0400
+
 debathena-afuse-automounter (1.0) unstable; urgency=low
 
   * Initial release.

Modified: trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.init
===================================================================
--- trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.init	2008-04-21 20:21:23 UTC (rev 22915)
+++ trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.init	2008-04-21 20:22:21 UTC (rev 22916)
@@ -15,6 +15,7 @@
 case "$1" in
   start)
 	modprobe fuse
+	mkdir -p /mit
 	eval $COMMAND
 	;;
   stop)

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-21 20:21:23 UTC (rev 22915)
+++ trunk/debathena/debathena/debathena-afuse-automounter/debian/debathena-afuse-automounter.postinst	2008-04-21 20:22:21 UTC (rev 22916)
@@ -22,7 +22,11 @@
     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
-	    echo "This is an upgrade; not starting afuse automounter"
+	    if [ -n "$2" ]; then
+		echo "This is an upgrade from version $2; not restarting afuse automounter"
+	    else
+		echo "Upgrade from autofs which has failed to stop; not starting afuse automounter"
+	    fi
 	    update-rc.d debathena-afuse-automounter defaults 26 17 >/dev/null
 	else
 	    #DEBHELPER#


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