[Fai-commit] r3885 - trunk/debian

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Sep 7 12:08:38 UTC 2006


Author: lange
Date: 2006-09-07 12:08:38 +0000 (Thu, 07 Sep 2006)
New Revision: 3885

Added:
   trunk/debian/fai-client.postrm
Modified:
   trunk/debian/fai-server.postrm
Log:
better cleanup of /var/run/fai


Added: trunk/debian/fai-client.postrm
===================================================================
--- trunk/debian/fai-client.postrm	                        (rev 0)
+++ trunk/debian/fai-client.postrm	2006-09-07 12:08:38 UTC (rev 3885)
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+    purge)
+	rm /var/run/fai/* 2>/dev/null || true
+	rmdir /var/run/fai || true
+        ;;
+esac
+
+#DEBHELPER#
+
+exit 0

Modified: trunk/debian/fai-server.postrm
===================================================================
--- trunk/debian/fai-server.postrm	2006-09-07 12:01:27 UTC (rev 3884)
+++ trunk/debian/fai-server.postrm	2006-09-07 12:08:38 UTC (rev 3885)
@@ -7,7 +7,7 @@
 
 case "$1" in
     purge)
-	rm -rf /srv/tftp/fai /var/run/fai
+	rm -rf /srv/tftp/fai /var/run/fai/make-fai-nfsroot
 	echo "WARNING: removing NFSROOT $NFSROOT"
 	rm -rf $NFSROOT || true
 




More information about the Fai-commit mailing list