Parent Directory
|
Revision Log
* fai.conf, make-fai-nfsroot.conf: move FAI_CONFIGDIR to m-f-n.conf, because it's only needed on an install server * fai-cd, fai: get FAI_CONFIGDIR from new config file * fai-server.preinst, fai-server.prerm, fai-quickstart.postinst: print warning if FAI_CONFIGDIR is still in the wrong place * fai-quickstart.prerm: source make-fai-nfsroot.conf instead of fai.conf
| 1 | #! /bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | case "$1" in |
| 6 | purge) |
| 7 | . /etc/fai/make-fai-nfsroot.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 |