)]}'
{"tools/create-stack-user.sh":[{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"304eaf0a4b5fe0676070cd77e29d6c1db93ac232","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# and it was time for this nonsense to stop.  Run this script as root to create"},{"line_number":16,"context_line":"# the user and configure sudo."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"set -e"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"# Keep track of the devstack directory"},{"line_number":21,"context_line":"TOP_DIR\u003d$(cd $(dirname \"$0\")/.. \u0026\u0026 pwd)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAAU3%2F%2F7bw%3D","line":18,"updated":"2014-02-24 01:52:59.000000000","message":"we use set -o errexit to be more explicit in all the other scripts, should be the same here.","commit_id":"e557cdb8c1380d047c2cb34aae534bf5797c19e8"},{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"304eaf0a4b5fe0676070cd77e29d6c1db93ac232","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"# Import common functions"},{"line_number":24,"context_line":"if [[ -e $TOP_DIR/functions ]]; then"},{"line_number":25,"context_line":"    source $TOP_DIR/functions"},{"line_number":26,"context_line":"else"},{"line_number":27,"context_line":"    echo \"Could not source $TOP_DIR/functions. Exiting.\""},{"line_number":28,"context_line":"    exit 1"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAAU3%2F%2F7bI%3D","line":25,"updated":"2014-02-24 01:52:59.000000000","message":"with err exit, I\u0027m not sure why the rest of this is needed, as the script will now stop with \n\nbash: $TOP_DIR/functions No such file or directory","commit_id":"e557cdb8c1380d047c2cb34aae534bf5797c19e8"},{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"304eaf0a4b5fe0676070cd77e29d6c1db93ac232","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"# Needed to get ``ENABLED_SERVICES`` and ``STACK_USER``"},{"line_number":37,"context_line":"if [[ -e $TOP_DIR/stackrc ]]; then"},{"line_number":38,"context_line":"    source $TOP_DIR/stackrc"},{"line_number":39,"context_line":"else"},{"line_number":40,"context_line":"    echo \"Could not source $TOP_DIR/stackrc. Exiting.\""},{"line_number":41,"context_line":"    exit 1"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAAU3%2F%2F7a4%3D","line":38,"updated":"2014-02-24 01:52:59.000000000","message":"same comment as above","commit_id":"e557cdb8c1380d047c2cb34aae534bf5797c19e8"},{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"304eaf0a4b5fe0676070cd77e29d6c1db93ac232","unresolved":false,"context_lines":[{"line_number":44,"context_line":"# Give the non-root user the ability to run as **root** via ``sudo``"},{"line_number":45,"context_line":"is_package_installed sudo || install_package sudo"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"if [[ -z \"$STACK_USER\" ]]; then"},{"line_number":48,"context_line":"    echo \"STACK_USER is not set. Exiting.\""},{"line_number":49,"context_line":"    exit 1"},{"line_number":50,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAAU3%2F%2F7Zg%3D","line":47,"updated":"2014-02-24 01:52:59.000000000","message":"[ -z \"$STACK_USER\" ] \u0026\u0026 die \"STACK_USER is not set. Exiting.\"\n\nwould be better","commit_id":"e557cdb8c1380d047c2cb34aae534bf5797c19e8"}]}
