Make site and rendered yamls world-readable

Make files collected and rendered by Pegleg (owned by root
and 640 by default) world-readable so non-root Promenade
processes can read them.

Change-Id: Ic5bce645ebf58c106fd59701b3f282f9e2455f0e
This commit is contained in:
Crank, Daniel (dc6350) 2019-11-01 16:07:12 -05:00
parent d7d345fd24
commit 671bc38260
2 changed files with 14 additions and 0 deletions

View File

@ -88,3 +88,10 @@ then
else
collect_design_docs
fi
# TODO(dc6350): as of 11/4/2019, Pegleg is running as root and
# producing files with permission 640, and Promenade tasks running
# as non-root users cannot read them. This line makes the files
# world-readable and can be removed when Pegleg is no longer
# running as root.
sudo chmod 644 "${DEFINITION_DEPOT}"*.yaml

View File

@ -75,3 +75,10 @@ collect_rendered_doc() {
log "Collecting rendered document to ${RENDERED_DEPOT}"
collect_rendered_doc
# TODO(dc6350): as of 11/4/2019, Pegleg is running as root and
# producing files with permission 640, and Promenade tasks running
# as non-root users cannot read them. This line makes the files
# world-readable and can be removed when Pegleg is no longer
# running as root.
sudo chmod 644 "${RENDERED_DEPOT}"*.yaml