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 31 32 33 34 35 36
|
#!/bin/sh
set -e
case "$1" in
configure)
# begin-remove-after: released:trixie
# DEP17 P1 M8: Protective diversion for moved file
if dpkg --compare-versions "$2" lt 1:2.8.2-2~exp1~; then
dpkg-divert --remove --no-rename --divert /lib/systemd/system/nfs-blkmap.service.usr-is-merged /lib/systemd/system/nfs-blkmap.service
fi
# end-remove-after: released:trixie
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
# Create state file if missing, using backup created during
# preinst if present
if [ -f /var/lib/nfs/state.bak ]; then
mv -n /var/lib/nfs/state.bak /var/lib/nfs/state || rm -f /var/lib/nfs/state.bak
else
[ -e /var/lib/nfs/state ] || touch /var/lib/nfs/state
fi
chown statd /var/lib/nfs/state
;;
esac
#DEBHELPER#
|