From: Martin Zobel-Helas Date: Fri, 9 Mar 2012 09:33:57 +0000 (+0100) Subject: ud-replicate: set correct permissions for web-passwords X-Git-Tag: userdir-ldap-0.3.85~78 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=9cf20ca6242f82b48ca3d201fab98ba1aabbfe49 ud-replicate: set correct permissions for web-passwords Signed-off-by: Martin Zobel-Helas --- 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`