[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, master, updated. debian/6.1.11_dfsg-2-2-gb1c8348

Emmanuel Bouthenot kolter at openics.org
Mon May 21 12:17:45 UTC 2012


The following commit has been merged in the master branch:
commit 350b39faf3ffbeab0f440deae4222c8ee526c4fc
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Mon May 21 09:45:14 2012 +0000

    sympa user has to be created before all operation in postinst script (#673759)

diff --git a/debian/sympa.postinst b/debian/sympa.postinst
index 7d82f84..fd0489b 100644
--- a/debian/sympa.postinst
+++ b/debian/sympa.postinst
@@ -17,6 +17,12 @@ sympa_version() {
 	perl -e "use lib '/usr/share/sympa/lib'; use Sympa::Constants; print Sympa::Constants::VERSION;"
 }
 
+# creating sympa user if he isn't already there
+if ! getent passwd sympa >/dev/null ; then
+	echo "Adding system user: sympa."
+	adduser --system --group --gecos "Sympa mailing list manager" --no-create-home --home /var/lib/sympa sympa >/dev/null
+fi
+
 # /etc/sympa/data_structure.version should not be handled as a conffile as it
 # is modified by sympa upgrade tool and it breaks the sympa upgrade process
 # itsself (#655967)
@@ -38,12 +44,6 @@ if [ ! -f /etc/sympa/data_structure.version ]; then
 fi
 chown sympa:sympa /etc/sympa/data_structure.version
 
-# creating sympa user if he isn't already there
-if ! getent passwd sympa >/dev/null ; then
-	echo "Adding system user: sympa."
-	adduser --system --group --gecos "Sympa mailing list manager" --no-create-home --home /var/lib/sympa sympa >/dev/null
-fi
-
 # Stop the daemon if it has already been started This is necessary when you run
 # dpkg-reconfigure
 if [ "$1" = "configure" ]; then

-- 
sympa Debian packaging



More information about the Pkg-sympa-commits mailing list