Skip to content
Snippets Groups Projects
Commit de5f8826 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

ensure-dirs: Fix a bug with queue/archive permissions


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: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent ba98a8d1
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,11 @@ _ensure_datadir() {
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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment