)]}'
{"files/functions":[{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"8be6d8c3bc8c1839a13785b9776a1f7df1534357","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    if [[ ! -d $SITE_ROOT/storage/logs ]]; then"},{"line_number":50,"context_line":"        mkdir -p $SITE_ROOT/storage/logs"},{"line_number":51,"context_line":"    fi"},{"line_number":52,"context_line":"}"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"function set_laravel_storage_permissions {"},{"line_number":55,"context_line":"    chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"3fa7e38b_d3fafe43","line":52,"updated":"2020-02-17 15:44:31.000000000","message":"Note that the conditional checks should not be necessary since mkdir -p is idempotent (it won\u0027t error if the directory you ask it to create already exists). Also mkdir -p creates parent directories implicitly so there\u0027s no need to prcreate them, you only need to mkdir -p the child/leaf directories.","commit_id":"fb0da02f2c0f25c4665553472a17dbafe1a42ea8"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"8be6d8c3bc8c1839a13785b9776a1f7df1534357","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage"},{"line_number":56,"context_line":"    chmod 02770 $SITE_ROOT/storage;"},{"line_number":57,"context_line":"    find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \\;"},{"line_number":58,"context_line":"    find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \\;"},{"line_number":59,"context_line":"    # set html purifier cache permission"},{"line_number":60,"context_line":"    chmod 0770 vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer"},{"line_number":61,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"3fa7e38b_f3f7fa5a","line":58,"updated":"2020-02-17 15:44:31.000000000","message":"The X symbolic option to chmod allows you to set the x bit on directories while skipping files, so you could replace these find commands with a single `chmod -R a\u003drX,ug+w $SITE_ROOT/storage` if you find that cleaner.","commit_id":"fb0da02f2c0f25c4665553472a17dbafe1a42ea8"}]}
