diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 06:03:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 06:03:02 +0000 |
commit | edd02aa960301b52f94c88efb6fae0d3ca79b548 (patch) | |
tree | 5cec2df47f338a42883a0e6189028df4f4ec6077 /debian/nfs-common.postinst | |
parent | Adding upstream version 1:2.6.4. (diff) | |
download | nfs-utils-edd02aa960301b52f94c88efb6fae0d3ca79b548.tar.xz nfs-utils-edd02aa960301b52f94c88efb6fae0d3ca79b548.zip |
Adding debian version 1:2.6.4-3.debian/1%2.6.4-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/nfs-common.postinst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst new file mode 100644 index 0000000..d0ffe74 --- /dev/null +++ b/debian/nfs-common.postinst @@ -0,0 +1,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# |