While it sets the permission on all files in queue/archive accordingly
it doesn't do so for the created archive directories. This patch fixes
this problem.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
local queue_owner="$(_fileset_owner masterd)"
local ssconf_owner="$(_fileset_owner noded)"
+ find ${DATADIR}/queue/archive -type d | \
+ while read path; do
+ _ensure_dir ${path} 0700 "$queue_owner"
+ done
+
_gather_files ${DATADIR}/queue 0600 @GNTMASTERUSER@ @GNTMASTERDGROUP@ | \
while read path; do
_ensure_file "$path" 0600 "$queue_owner"