blob: d0ffe747c279594a33bef97e0c4db23b02379bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
case "$1" in
configure)
ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
ucf --three-way /usr/share/nfs-common/conffiles/nfs-common.default /etc/default/nfs-common
ucf --three-way /usr/share/nfs-common/conffiles/nfs.conf /etc/nfs.conf
if ! getent passwd statd >/dev/null; then
adduser --system --home /var/lib/nfs --no-create-home statd
fi
chown statd: /var/lib/nfs/sm \
/var/lib/nfs/sm.bak
if [ -f /var/lib/nfs/state ]; then
chown statd /var/lib/nfs/state
fi
;;
esac
#DEBHELPER#
|