[pkg-bacula-commits] [bacula] 18/27: Updated debian/bacula-common.preinst to specify "--home" on call to "adduser" instead of changing later with "usermod" [lintian]

Carsten Leonhardt cl-guest at moszumanska.debian.org
Sun Jul 19 22:38:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

cl-guest pushed a commit to branch master
in repository bacula.

commit 3a29b6cd4451406c13d09ba5f2c1656790324c79
Author: Carsten Leonhardt <leo at debian.org>
Date:   Mon Jul 20 00:20:27 2015 +0200

    Updated debian/bacula-common.preinst to specify "--home" on call to
    "adduser" instead of changing later with "usermod" [lintian]
---
 debian/bacula-common.preinst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/bacula-common.preinst b/debian/bacula-common.preinst
index f5c8fb7..11542fc 100644
--- a/debian/bacula-common.preinst
+++ b/debian/bacula-common.preinst
@@ -7,11 +7,10 @@ case "$1" in
 	install)
 		if ! getent passwd bacula >/dev/null; then
 			echo -n "Adding user 'bacula'... "
-			adduser --system --no-create-home --group bacula 2>&1 > /dev/null
+			adduser --system --no-create-home --home /var/lib/bacula bacula --group bacula 2>&1 > /dev/null
 			usermod -c "Bacula" bacula
 			usermod -G tape bacula
 			echo "Ok."
-                        usermod -d /var/lib/bacula bacula
 		fi
 	;;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list