Update o+r permission after mirroring repo
Nginx repo relies on at lease xx4 permission on repo files.
Closes-bug: PROD-36186
Change-Id: I2387f14340761a14a282ce1d5e621cf111a79e9c
diff --git a/mirror-image/scripts/mirrors.sh b/mirror-image/scripts/mirrors.sh
index b01ddbe..bed99ff 100644
--- a/mirror-image/scripts/mirrors.sh
+++ b/mirror-image/scripts/mirrors.sh
@@ -41,6 +41,8 @@
UPDATE_DIR=$(salt-call pillar.get _param:debmirror_mirrors_update_target_dir --out text | awk '{print $2}')
ln -s ../update/$(basename ${UPDATE_DIR}) update/${CUR_T}
fi
+ # fixing permission for nginx access
+ find . ! -perm -o+r -exec chmod o+r {} \;
popd
if [[ -n "${CUR_T}" ]]; then
ln -s /srv/http/${CUR_V} /srv/http/${CUR_T}