[Pkg-openldap-devel] [openldap] 01/05: slapd.scripts-common: use update_permissions instead direct calls

Ryan Tandy rtandy-guest at moszumanska.debian.org
Wed Aug 12 01:50:36 UTC 2015


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

rtandy-guest pushed a commit to branch master
in repository openldap.

commit 94fa4e224d35c8d5bcfa9e7923b762b582441df8
Author: Peter Marschall <peter at adpm.de>
Date:   Sat Apr 12 18:17:42 2014 +0200

    slapd.scripts-common: use update_permissions instead direct calls
---
 debian/slapd.scripts-common | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/debian/slapd.scripts-common b/debian/slapd.scripts-common
index 05d3fbd..266d277 100644
--- a/debian/slapd.scripts-common
+++ b/debian/slapd.scripts-common
@@ -237,10 +237,7 @@ EOF
 
 		if [ -n "$SLAPD_USER" ] || [ -n "$SLAPD_GROUP" ]; then
 			echo -n "  - chowning database directory ($SLAPD_USER:$SLAPD_GROUP)... "
-			[ -z "$SLAPD_USER" ] || \
-				chown -R -H "$SLAPD_USER" "$dbdir"
-			[ -z "$SLAPD_GROUP" ] || \
-				chgrp -R -H "$SLAPD_GROUP" "$dbdir"
+			update_permissions "$dbdir"
 			echo "done";
 		fi
 	done

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



More information about the Pkg-openldap-devel mailing list