[Fai-commit] r4499 - trunk/debian

lange at alioth.debian.org lange at alioth.debian.org
Sun Aug 12 14:10:03 UTC 2007


Author: lange
Date: 2007-08-12 14:10:03 +0000 (Sun, 12 Aug 2007)
New Revision: 4499

Modified:
   trunk/debian/fai-server.postinst
   trunk/debian/fai-server.postrm
Log:
do not handle $TFTPROOT by postinst and postrm scripts


Modified: trunk/debian/fai-server.postinst
===================================================================
--- trunk/debian/fai-server.postinst	2007-08-12 14:08:14 UTC (rev 4498)
+++ trunk/debian/fai-server.postinst	2007-08-12 14:10:03 UTC (rev 4499)
@@ -35,7 +35,6 @@
 case "$1" in
     configure)
 
-	[ -d $TFTPROOT ] || mkdir -p $TFTPROOT
         echo "You might want to edit fai.conf and make-fai-nfsroot.conf in /etc/fai or"
 	echo "go with the defaults. You should edit /etc/fai/apt/sources.list"
 	echo "for faster access to a package repository."

Modified: trunk/debian/fai-server.postrm
===================================================================
--- trunk/debian/fai-server.postrm	2007-08-12 14:08:14 UTC (rev 4498)
+++ trunk/debian/fai-server.postrm	2007-08-12 14:10:03 UTC (rev 4499)
@@ -8,14 +8,13 @@
 
 case "$1" in
     purge)
-	rm -rf $TFTPROOT /var/run/fai/make-fai-nfsroot
+	rm -rf /var/run/fai/make-fai-nfsroot
 	echo "WARNING: removing NFSROOT $NFSROOT"
 	rm -rf $NFSROOT || true
 
         ;;
 
     remove)
-	rmdir $TFTPROOT || true
 	;;
 
     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;;




More information about the Fai-commit mailing list