Don't start the nfs-common init script from the nfs-kernel-server maintainer script...
[nfs-utils.git] / debian / nfs-kernel-server.postinst
1 #!/bin/sh
2
3 set -e
4
5 #DEBHELPER#
6
7 case "$1" in
8     configure)
9         ucf --three-way /usr/share/nfs-kernel-server/conffiles/etc.exports /etc/exports
10         ucf --three-way /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default /etc/default/nfs-kernel-server
11
12         for f in /var/lib/nfs/etab  \
13                  /var/lib/nfs/rmtab \
14                  /var/lib/nfs/xtab; do
15             [ -e $f ] || touch $f
16         done
17
18         update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
19     ;;
20 esac
21
22 act="restart"
23 [ "$1:$2" = "configure:" ] && act="start"
24 invoke-rc.d nfs-kernel-server $act