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-kernel-server.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 'debian/nfs-kernel-server.postinst')
-rw-r--r-- | debian/nfs-kernel-server.postinst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/nfs-kernel-server.postinst b/debian/nfs-kernel-server.postinst new file mode 100644 index 0000000..f0cdc44 --- /dev/null +++ b/debian/nfs-kernel-server.postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +case "$1" in + configure) + ucf --three-way /usr/share/nfs-kernel-server/conffiles/etc.exports /etc/exports + ucf --three-way /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default /etc/default/nfs-kernel-server + + for f in /var/lib/nfs/etab \ + /var/lib/nfs/rmtab; do + [ -e $f ] || touch $f + done + + update-rc.d nfs-kernel-server defaults 20 80 >/dev/null + + # Remove leftover /fsid.sock file on upgrade (Cf. #1041147) + if dpkg --compare-versions "$2" lt 1:2.6.3-2~; then + if [ -S /fsid.sock ]; then + rm -f /fsid.sock + fi + fi + ;; +esac + +act="restart" +[ "$1:$2" = "configure:" ] && act="start" +invoke-rc.d nfs-kernel-server $act || echo "Failed to ${act} nfs-kernel-server, ignoring." |