7 ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
8 ucf --three-way /usr/share/nfs-common/conffiles/gssapi_mech.conf /etc/gssapi_mech.conf
9 ucf --three-way /usr/share/nfs-common/conffiles/nfs-common.default /etc/default/nfs-common
11 update-rc.d nfs-common defaults 21 79 >/dev/null
13 if ! getent passwd statd >/dev/null; then
14 adduser --system --home /var/lib/nfs --no-create-home statd
16 if dpkg --compare-versions "$2" ge 1:1.0.7-10 && dpkg --compare-versions "$2" lt 1:1.0.7-13; then
17 usermod --home /var/lib/nfs statd || true
18 if [ -d /home/statd ]; then
19 rmdir --ignore-fail-on-non-empty /home/statd
22 if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1:1.0.7-16; then
23 chown statd /var/lib/nfs/sm \
25 /var/lib/nfs/rpc_pipefs \
27 if [ -f /var/lib/nfs/state ]; then
28 chown statd /var/lib/nfs/state
35 [ "$1:$2" = "configure:" ] && act="start"
36 invoke-rc.d nfs-common $act