7 ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
8 ucf --three-way /usr/share/nfs-common/conffiles/nfs-common.default /etc/default/nfs-common
10 if [ "$2" != "" ] && dpkg --compare-versions "$2" lt 1:1.1.0-10; then
11 update-rc.d -f nfs-common remove >/dev/null
13 update-rc.d nfs-common start 20 2 3 4 5 . stop 20 0 1 6 . start 44 S . >/dev/null
15 if ! getent passwd statd >/dev/null; then
16 adduser --system --home /var/lib/nfs --no-create-home statd
18 if dpkg --compare-versions "$2" ge 1:1.0.7-10 && dpkg --compare-versions "$2" lt 1:1.0.7-13; then
19 usermod --home /var/lib/nfs statd || true
20 if [ -d /home/statd ]; then
21 rmdir --ignore-fail-on-non-empty /home/statd
24 if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1:1.0.7-16; then
25 chown statd /var/lib/nfs/sm \
27 /var/lib/nfs/rpc_pipefs \
29 if [ -f /var/lib/nfs/state ]; then
30 chown statd /var/lib/nfs/state
34 if [ "$2" != "" ] || dpkg --compare-versions "$2" lt 1:1.1.0-14; then
35 if dpkg-statoverride --list /sbin/mount.nfs >/dev/null 2>&1; then
36 dpkg-statoverride --remove /sbin/mount.nfs
43 [ "$1:$2" = "configure:" ] && act="start"
44 invoke-rc.d nfs-common $act