[Fai-commit] r3040 - trunk/debian

fai-repository at svn.debian.org fai-repository at svn.debian.org
Fri Nov 11 13:47:19 UTC 2005


Author: lange
Date: 2005-11-11 13:47:19 +0000 (Fri, 11 Nov 2005)
New Revision: 3040

Modified:
   trunk/debian/fai-quickstart.prerm
Log:
add question before removing $FAI_CONFIGDIR


Modified: trunk/debian/fai-quickstart.prerm
===================================================================
--- trunk/debian/fai-quickstart.prerm	2005-11-11 13:39:06 UTC (rev 3039)
+++ trunk/debian/fai-quickstart.prerm	2005-11-11 13:47:19 UTC (rev 3040)
@@ -8,7 +8,13 @@
 	if [ -z "$FAI_CONFIGDIR" ]; then
 	    echo "\$FAI_CONFIGDIR is not defined. Can't remove it."
 	else
-	    rm -rf $FAI_CONFIGDIR
+	    echo -n "Shall I do rm -rf $FAI_CONFIGDIR? " ; read answer
+	    case $answer in
+		y*|Y*)
+		    rm -rf $FAI_CONFIGDIR ;;
+		*)
+		    echo "$FAI_CONFIGDIR left untouched." ;;
+	    esac
 	fi
         ;;
 




More information about the Fai-commit mailing list