blob: f0cdc44f88a7e00b399326f10e1f440667359b43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
ucf --three-way /usr/share/nfs-kernel-server/conffiles/etc.exports /etc/exports
ucf --three-way /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default /etc/default/nfs-kernel-server
for f in /var/lib/nfs/etab \
/var/lib/nfs/rmtab; do
[ -e $f ] || touch $f
done
update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
# Remove leftover /fsid.sock file on upgrade (Cf. #1041147)
if dpkg --compare-versions "$2" lt 1:2.6.3-2~; then
if [ -S /fsid.sock ]; then
rm -f /fsid.sock
fi
fi
;;
esac
act="restart"
[ "$1:$2" = "configure:" ] && act="start"
invoke-rc.d nfs-kernel-server $act || echo "Failed to ${act} nfs-kernel-server, ignoring."
|