[SCM] proftpd-dfsg branch, debian/1.3.3, updated. debian/1.3.3a-6-30-gbcdfb06

Francesco Paolo Lovergine frankie at debian.org
Mon Mar 21 11:14:48 UTC 2011


The following commit has been merged in the debian/1.3.3 branch:
commit bcdfb06a9550d7e4dcc8cb925fe030e4b1e9e597
Author: Francesco Paolo Lovergine <frankie at debian.org>
Date:   Mon Mar 21 12:12:55 2011 +0100

    Fixed #618888

diff --git a/debian/changelog b/debian/changelog
index 2ed11b2..cab363d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+proftpd-dfsg (1.3.3d-6) unstable; urgency=low
+
+  * Moved ftp user home to /srv/ftp as used by other ftp servers.
+    (closes: #618888)
+  * Now ftp home and user are removed on purge (old or new one).
+  * Removing the whole log directory on purge.
+
+ -- Francesco Paolo Lovergine <frankie at debian.org>  Mon, 21 Mar 2011 11:29:10 +0100
+
 proftpd-dfsg (1.3.3d-5) unstable; urgency=low
 
   [ Francesco Paolo Lovergine <frankie at debian.org> ]
diff --git a/debian/proftpd-basic.postinst b/debian/proftpd-basic.postinst
index fb6672e..dde2315 100644
--- a/debian/proftpd-basic.postinst
+++ b/debian/proftpd-basic.postinst
@@ -27,7 +27,7 @@ installftp()
 {
 	if ! grep -q "^ftp:" /etc/passwd
 	then
-	    adduser --system ftp || true
+	    adduser --system ftp --home /srv/ftp || true
             if [ -f /usr/share/proftpd/templates/welcome.msg -a -d ~ftp ] ; then
                 cp -p -v /usr/share/proftpd/templates/welcome.msg ~ftp/welcome.msg.proftpd-new || true
                 do_update ~ftp/welcome.msg || true
diff --git a/debian/proftpd-basic.postrm b/debian/proftpd-basic.postrm
index 1abf5ba..f34aa1a 100644
--- a/debian/proftpd-basic.postrm
+++ b/debian/proftpd-basic.postrm
@@ -10,8 +10,10 @@ fi
 if [ "$1" = "purge" ]
 then
     rm -rf /etc/proftpd 
-    update-rc.d proftpd remove >/dev/null || exit $?
+    rm -rf /var/log/proftpd
     userdel --remove --force proftpd || true
+    userdel --remove --force ftp || true
+    update-rc.d proftpd remove >/dev/null || exit $?
 fi
 
 #DEBHELPER#

-- 
ProFTPD core package



More information about the Pkg-proftpd-maintainers mailing list