X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postinst;h=7671c1578fef333d22169c4fd5e40e0d78b4ac2a;hp=f556bc273519fc72c58dd2fb2abd5d83c1a0dcd2;hb=32078903299012c3ddee8a55ef54eac359fa0516;hpb=d4c3e975f577ad0b8b43027b962a6ec1e73112b1 diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst old mode 100755 new mode 100644 index f556bc2..7671c15 --- a/debian/nfs-common.postinst +++ b/debian/nfs-common.postinst @@ -4,6 +4,9 @@ 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 + update-rc.d nfs-common defaults 21 79 >/dev/null if ! getent passwd statd >/dev/null; then @@ -24,6 +27,10 @@ case "$1" in chown statd /var/lib/nfs/state fi fi + + if ! dpkg-statoverride --list /sbin/mount.nfs >/dev/null 2>&1; then + dpkg-statoverride --update --add root root 4755 /sbin/mount.nfs + fi ;; esac