Use file permissions instead of ownership to grant access to files
This means the script can run even if the jenkins user is not present. Change-Id: I1c93a841b82514fb146d827332eecea98d9dbd3b
This commit is contained in:
parent
9c246bf3c9
commit
e95e5f0e5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user