| 1 |
#! /bin/sh |
| 2 |
# preinst script for fai-server |
| 3 |
# |
| 4 |
# see: dh_installdeb(1) |
| 5 |
|
| 6 |
set -e |
| 7 |
|
| 8 |
# summary of how this script can be called: |
| 9 |
# * <new-preinst> `install' |
| 10 |
# * <new-preinst> `install' <old-version> |
| 11 |
# * <new-preinst> `upgrade' <old-version> |
| 12 |
# * <old-preinst> `abort-upgrade' <new-version> |
| 13 |
# |
| 14 |
# For details see /usr/share/doc/packaging-manual/ |
| 15 |
|
| 16 |
case "$1" in |
| 17 |
upgrade) |
| 18 |
if egrep -q ^FAI_CONFIGDIR= /etc/fai/fai.conf; then |
| 19 |
echo "WARNING: The variable \$FAI_CONFIGDIR is still defined in /etc/fai/fai.conf." |
| 20 |
echo "Please move it to /etc/fai/nfsroot.conf." |
| 21 |
fi |
| 22 |
;; |
| 23 |
|
| 24 |
abort-upgrade) ;; |
| 25 |
|
| 26 |
install) ;; |
| 27 |
|
| 28 |
*) |
| 29 |
echo "preinst called with unknown argument \`$1'" >&2 |
| 30 |
exit 1 |
| 31 |
;; |
| 32 |
esac |
| 33 |
|
| 34 |
# dh_installdeb will replace this with shell code automatically |
| 35 |
# generated by other debhelper scripts. |
| 36 |
|
| 37 |
#DEBHELPER# |
| 38 |
|
| 39 |
exit 0 |
| 40 |
|
| 41 |
|