Package: nfs-common
Version: 1:1.0.7-12
Severity: wishlist
Tags: patch

How about this patch to fix (get rid of) old home directory for statd?
(It's untested but should clean things up properly.)

Regards,

Oskar

diff -u nfs-common.postinst.v0 nfs-common.postinst
--- nfs-common.postinst.v0      2006-05-05 23:53:19.000000000 +0200
+++ nfs-common.postinst 2006-05-05 23:56:07.000000000 +0200
@@ -9,6 +9,12 @@
        if ! getent passwd statd >/dev/null; then
            adduser --system --home /var/lib/nfs --no-create-home statd
        fi
+
+       if [ "$2" = "" ] || dpkg --compare-versions "$2" gt 1.0.7-12; then
+           usermod --home /var/lib/nfs statd
+           rmdir --ignore-fail-on-non-empty /home/statd
+       fi
+
        if [ "$2" = "" ] || dpkg --compare-versions "$2" lt 1.0.7-10; then
            chown statd /var/lib/nfs/sm \
                /var/lib/nfs/sm.bak \

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.7
Locale: LANG=C, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages nfs-common depends on:
ii  adduser       3.87                       Add and remove users and groups
ii  libc6         2.3.6-7                    GNU C Library: Shared libraries
ii  libcomerr2    1.38+1.39-WIP-2006.04.09-1 common error description library
ii  libevent1     1.1a-1                     An asynchronous event notification
ii  libkrb53      1.4.3-7                    MIT Kerberos runtime libraries
ii  libnfsidmap1  0.13-1                     An nfs idmapping library
ii  libwrap0      7.6.dbs-9                  Wietse Venema's TCP wrappers libra
ii  portmap       5-18                       The RPC portmapper
ii  sysvinit      2.86.ds1-14                System-V-like init utilities

nfs-common recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to