)]}'
{"install_rally.sh":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"57bada42b55b138dced87b242bd3214f3391b879","unresolved":false,"context_lines":[{"line_number":844,"context_line":"    fi"},{"line_number":845,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":846,"context_line":"    if [ \"$DBTYPE\" \u003d \u0027sqlite\u0027 ]; then"},{"line_number":847,"context_line":"        chmod -R go+w ${RALLY_DATABASE_DIR}"},{"line_number":848,"context_line":"    fi"},{"line_number":849,"context_line":""},{"line_number":850,"context_line":"    cat \u003c\u003c__EOF__"}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_ae353445","side":"PARENT","line":847,"updated":"2015-09-08 08:29:04.000000000","message":"will it work without -R in case of directory?","commit_id":"7041971c4112f2692d7426a3346081f87ab4b8f6"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"bbd9ded7e772b3b98a87282895328497c6722428","unresolved":false,"context_lines":[{"line_number":844,"context_line":"    fi"},{"line_number":845,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":846,"context_line":"    if [ \"$DBTYPE\" \u003d \u0027sqlite\u0027 ]; then"},{"line_number":847,"context_line":"        chmod -R go+w ${RALLY_DATABASE_DIR}"},{"line_number":848,"context_line":"    fi"},{"line_number":849,"context_line":""},{"line_number":850,"context_line":"    cat \u003c\u003c__EOF__"}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_89238a57","side":"PARENT","line":847,"in_reply_to":"da20952f_ae353445","updated":"2015-09-08 08:47:35.000000000","message":"I tried, and it\u0027s okay","commit_id":"7041971c4112f2692d7426a3346081f87ab4b8f6"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"bbd9ded7e772b3b98a87282895328497c6722428","unresolved":false,"context_lines":[{"line_number":844,"context_line":"        SAMPLESDIR\u003d$SOURCEDIR/samples"},{"line_number":845,"context_line":"    fi"},{"line_number":846,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":847,"context_line":"    if [ -n $DBFILE ]; then"},{"line_number":848,"context_line":"        chmod go+w \"$DBFILE\""},{"line_number":849,"context_line":"    fi"},{"line_number":850,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_691dd60d","line":847,"updated":"2015-09-08 08:47:35.000000000","message":"it\u0027s better to use -f which means \"FILE exists and is a regular file\"","commit_id":"c169afddc9c4b42c962a9a6c4693b54ac7861b08"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"fb278b1f8a427fc17cfe2ab0de4e86da9947396f","unresolved":false,"context_lines":[{"line_number":844,"context_line":"        SAMPLESDIR\u003d$SOURCEDIR/samples"},{"line_number":845,"context_line":"    fi"},{"line_number":846,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":847,"context_line":"    if [ -n $DBFILE ]; then"},{"line_number":848,"context_line":"        chmod go+w \"$DBFILE\""},{"line_number":849,"context_line":"    fi"},{"line_number":850,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_88637fdd","line":847,"in_reply_to":"da20952f_691dd60d","updated":"2015-09-08 10:51:57.000000000","message":"It is important to use quoted variable, because this will guarantee correct check if value is empty for some case.\n\nAlso agreed with Kun regarding `-f\u0027\n\n if [ -f \"${DBFILE}\" ]; then\n     ...","commit_id":"c169afddc9c4b42c962a9a6c4693b54ac7861b08"},{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"99b2a529cbf141a74d427aab4190f68a5dd745bc","unresolved":false,"context_lines":[{"line_number":846,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":847,"context_line":"    if [ -f \"${DBFILE}\" ]; then"},{"line_number":848,"context_line":"        chmod go+w \"$DBFILE\""},{"line_number":849,"context_line":"    fi"},{"line_number":850,"context_line":""},{"line_number":851,"context_line":"    cat \u003c\u003c__EOF__"},{"line_number":852,"context_line":"$GREEN\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-sh","patch_set":2,"id":"ba15a1d1_f11c1f15","line":849,"updated":"2015-09-15 11:19:04.000000000","message":"Should we add permissions to the RALLY_DATABASE_DIR as well? Maybe in some other place. Looks like we do not ALWAYS create the dir ourself, so it could preexist with some not suitable for us perms.","commit_id":"e4fd846dd0218be12733b9f26a896b15a2491402"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"1b8b516c53623d4165b64587e7f76547d7212274","unresolved":false,"context_lines":[{"line_number":846,"context_line":"    ln -s /usr/local/etc/bash_completion.d/rally.bash_completion /etc/bash_completion.d/ 2\u003e /dev/null || true"},{"line_number":847,"context_line":"    if [ -f \"${DBFILE}\" ]; then"},{"line_number":848,"context_line":"        chmod go+w \"$DBFILE\""},{"line_number":849,"context_line":"    fi"},{"line_number":850,"context_line":""},{"line_number":851,"context_line":"    cat \u003c\u003c__EOF__"},{"line_number":852,"context_line":"$GREEN\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-sh","patch_set":2,"id":"ba15a1d1_8d26dccc","line":849,"in_reply_to":"ba15a1d1_f11c1f15","updated":"2015-09-15 15:40:27.000000000","message":"It seems most of tools doesn\u0027t run mkdir by default...","commit_id":"e4fd846dd0218be12733b9f26a896b15a2491402"}]}
