Merge "Use file permissions instead of ownership to grant access to files"

This commit is contained in:
Jenkins 2016-01-13 09:17:26 +00:00 committed by Gerrit Code Review
commit c08709023f

View File

@ -165,8 +165,8 @@ cat /proc/cpuinfo > $LOG_DIR/cpuinfo.txt
ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt
# Make sure jenkins can read all the logs and configs
sudo chown -R jenkins:jenkins $LOG_DIR/
sudo chmod a+r $LOG_DIR/ $LOG_DIR/etc
sudo find $LOG_DIR -type d -execdir sudo chmod 755 '{}' \;
sudo find $LOG_DIR -type f -execdir sudo chmod 644 '{}' \;
# rename files to .txt; this is so that when displayed via
# logs.openstack.org clicking results in the browser shows the