)]}'
{"files/functions":[{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"9ea7d7d4d2d62b63b9c12da4cece854e028a8edb","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        ln -s $SITE_ROOT/storage $target_dir"},{"line_number":220,"context_line":"        # check for new storage structure ( LV 5.x)"},{"line_number":221,"context_line":"        if [[ -d $SITE_ROOT/storage/framework ]]; then"},{"line_number":222,"context_line":"           mkdir -p $SITE_ROOT/storage/framework;"},{"line_number":223,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/cache;"},{"line_number":224,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/views;"},{"line_number":225,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/sessions;"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"3a71b18c_68ad0b88","line":222,"range":{"start_line":222,"start_character":11,"end_line":222,"end_character":16},"updated":"2016-12-01 09:07:39.000000000","message":"why are you creating that directory, if you checked that already existed?","commit_id":"637dca385eac27fd5561621a9b10a83059edfb31"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"9ea7d7d4d2d62b63b9c12da4cece854e028a8edb","unresolved":false,"context_lines":[{"line_number":225,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/sessions;"},{"line_number":226,"context_line":"        fi"},{"line_number":227,"context_line":"        if [[ -d $SITE_ROOT/storage/app ]]; then"},{"line_number":228,"context_line":"           mkdir -p $SITE_ROOT/storage/app;"},{"line_number":229,"context_line":"           mkdir -p $SITE_ROOT/storage/app/public;"},{"line_number":230,"context_line":"        fi"},{"line_number":231,"context_line":"        # set permissions"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"3a71b18c_c8ba9fc0","line":228,"range":{"start_line":228,"start_character":11,"end_line":228,"end_character":16},"updated":"2016-12-01 09:07:39.000000000","message":"same question","commit_id":"637dca385eac27fd5561621a9b10a83059edfb31"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"b4147817a8d498ad3044b7bbfbfe408ee13ed7d1","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        ln -s $SITE_ROOT/storage $target_dir"},{"line_number":220,"context_line":"        # check for new storage structure ( LV 5.x)"},{"line_number":221,"context_line":"        if [[ ! -d $SITE_ROOT/storage/framework ]]; then"},{"line_number":222,"context_line":"           mkdir -p $SITE_ROOT/storage/framework;"},{"line_number":223,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/cache;"},{"line_number":224,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/views;"},{"line_number":225,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/sessions;"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ba5201f7_245d3f47","line":222,"updated":"2017-01-06 14:47:13.000000000","message":"Technically this line isn\u0027t necessary, since -p will create parent directories as needed.","commit_id":"7580a4ed3ddf31d08f4c5666e610560643471e60"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"b4147817a8d498ad3044b7bbfbfe408ee13ed7d1","unresolved":false,"context_lines":[{"line_number":225,"context_line":"           mkdir -p $SITE_ROOT/storage/framework/sessions;"},{"line_number":226,"context_line":"        fi"},{"line_number":227,"context_line":"        if [[ ! -d $SITE_ROOT/storage/app ]]; then"},{"line_number":228,"context_line":"           mkdir -p $SITE_ROOT/storage/app;"},{"line_number":229,"context_line":"           mkdir -p $SITE_ROOT/storage/app/public;"},{"line_number":230,"context_line":"        fi"},{"line_number":231,"context_line":"        # set permissions"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ba5201f7_44588356","line":228,"updated":"2017-01-06 14:47:13.000000000","message":"And same here.","commit_id":"7580a4ed3ddf31d08f4c5666e610560643471e60"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"b4147817a8d498ad3044b7bbfbfe408ee13ed7d1","unresolved":false,"context_lines":[{"line_number":229,"context_line":"           mkdir -p $SITE_ROOT/storage/app/public;"},{"line_number":230,"context_line":"        fi"},{"line_number":231,"context_line":"        # set permissions"},{"line_number":232,"context_line":"        chmod 02770 $SITE_ROOT/storage;"},{"line_number":233,"context_line":"        find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \\;"},{"line_number":234,"context_line":"        find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \\;"},{"line_number":235,"context_line":"    fi"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ba5201f7_6453c739","line":232,"updated":"2017-01-06 14:47:13.000000000","message":"If you moved this one to the end...","commit_id":"7580a4ed3ddf31d08f4c5666e610560643471e60"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"b4147817a8d498ad3044b7bbfbfe408ee13ed7d1","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        # set permissions"},{"line_number":232,"context_line":"        chmod 02770 $SITE_ROOT/storage;"},{"line_number":233,"context_line":"        find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \\;"},{"line_number":234,"context_line":"        find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \\;"},{"line_number":235,"context_line":"    fi"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    # populate application database"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ba5201f7_84342bfc","line":234,"updated":"2017-01-06 14:47:13.000000000","message":"...then you could replace both of these lines with `chmod -R ug\u003drwX,o\u003drX $SITE_ROOT/storage` (the X permission is a magic syntax to set the execute bit only on directories and not anything else), removing the need to iterate with find -exec.","commit_id":"7580a4ed3ddf31d08f4c5666e610560643471e60"}]}
