From 9cf20ca6242f82b48ca3d201fab98ba1aabbfe49 Mon Sep 17 00:00:00 2001 From: Martin Zobel-Helas Date: Fri, 9 Mar 2012 10:33:57 +0100 Subject: [PATCH] ud-replicate: set correct permissions for web-passwords Signed-off-by: Martin Zobel-Helas --- debian/changelog | 6 +++++- ud-replicate | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c522b7a..07e3cbf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,7 +23,11 @@ userdir-ldap (0.3.XXX) UNRELEASED; urgency=low * Fix deprecation warnings for sha module by using hashlib module instead * ud-fingerserv: update Net::LDAP import - -- Peter Palfrader Mon, 05 Mar 2012 11:55:33 +0100 + [ Martin Zobel-Helas ] + * ud-generate: generate webPasswords + * ud-replicate: set correct permissions for web-passwords + + -- Martin Zobel-Helas Fri, 09 Mar 2012 10:32:44 +0100 userdir-ldap (0.3.79) unstable; urgency=low diff --git a/ud-replicate b/ud-replicate index fb6834c..87491a3 100755 --- a/ud-replicate +++ b/ud-replicate @@ -105,6 +105,11 @@ if [ -e ${HOST}/ssh-keys.tar.gz ]; then rsync -a --delete-after $tempdir/ userkeys/ fi +if [ -e ${HOST}/web-passwords ]; then + chown root:www-data ${HOST}/web-passwords + chmod 0640 ${HOST}/web-passwords +fi + CHROOTS="" if [ -x /usr/bin/dchroot ]; then CHROOTS=`dchroot --listpaths` -- 2.20.1