/[fai]/trunk/debian/fai-quickstart.prerm
ViewVC logotype

Contents of /trunk/debian/fai-quickstart.prerm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3040 - (show annotations) (download)
Fri Nov 11 13:47:19 2005 UTC (7 years, 7 months ago) by lange
File size: 563 byte(s)
add question before removing $FAI_CONFIGDIR
1 #! /bin/sh
2
3 set -e
4
5 case "$1" in
6 purge)
7 . /etc/fai/fai.conf
8 if [ -z "$FAI_CONFIGDIR" ]; then
9 echo "\$FAI_CONFIGDIR is not defined. Can't remove it."
10 else
11 echo -n "Shall I do rm -rf $FAI_CONFIGDIR? " ; read answer
12 case $answer in
13 y*|Y*)
14 rm -rf $FAI_CONFIGDIR ;;
15 *)
16 echo "$FAI_CONFIGDIR left untouched." ;;
17 esac
18 fi
19 ;;
20
21 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;;
22
23 *)
24 echo "postrm called with unknown argument \`$1'" >&2
25 exit 1
26
27 esac
28
29 #DEBHELPER#
30
31 exit 0

  ViewVC Help
Powered by ViewVC 1.1.5