)]}'
{"copy_logs.sh":[{"author":{"_account_id":9061,"name":"David Moreau Simard","email":"moi@dmsimard.com","username":"dmsimard"},"change_message_id":"a5d66751e85f8f9fd0dc16498cf9cf0318d0ddfb","unresolved":false,"context_lines":[{"line_number":177,"context_line":"# Also make sure zuul can rsync all the logs and configs"},{"line_number":178,"context_line":"sudo find $LOG_DIR -type d -execdir sudo chmod 755 \u0027{}\u0027 \\;"},{"line_number":179,"context_line":"sudo find $LOG_DIR -type f -execdir sudo chmod 644 \u0027{}\u0027 \\;"},{"line_number":180,"context_line":"sudo chown -R jenkins:jenkins $LOG_DIR"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"# do not try to save symlinks because source files might not have"},{"line_number":183,"context_line":"# the right permissions to let jenkins user to upload them on log servers."}],"source_content_type":"text/x-sh","patch_set":4,"id":"3aaa91ec_5cd71bed","line":180,"updated":"2016-06-22 20:08:39.000000000","message":"May I suggest something like this instead:\nsudo chown -R \"$(id -u).$(id -g)\" $LOG_DIR\n\nThis would prevent errors when running under another user than jenkins.","commit_id":"04e82b16cf0ed96d7e1ffc4fc6910a59711c1dbb"}]}
