{"action":"created","issue":{"url":"https://api.github.com/repos/loggly/install-script/issues/80","repository_url":"https://api.github.com/repos/loggly/install-script","labels_url":"https://api.github.com/repos/loggly/install-script/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/loggly/install-script/issues/80/comments","events_url":"https://api.github.com/repos/loggly/install-script/issues/80/events","html_url":"https://github.com/loggly/install-script/pull/80","id":107971749,"number":80,"title":"remove sudo calls as script must be run as root","user":{"login":"tmornini","id":87,"avatar_url":"https://avatars.githubusercontent.com/u/87?v=3","gravatar_id":"","url":"https://api.github.com/users/tmornini","html_url":"https://github.com/tmornini","followers_url":"https://api.github.com/users/tmornini/followers","following_url":"https://api.github.com/users/tmornini/following{/other_user}","gists_url":"https://api.github.com/users/tmornini/gists{/gist_id}","starred_url":"https://api.github.com/users/tmornini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmornini/subscriptions","organizations_url":"https://api.github.com/users/tmornini/orgs","repos_url":"https://api.github.com/users/tmornini/repos","events_url":"https://api.github.com/users/tmornini/events{/privacy}","received_events_url":"https://api.github.com/users/tmornini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-23T17:52:13Z","updated_at":"2016-02-04T17:18:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/loggly/install-script/pulls/80","html_url":"https://github.com/loggly/install-script/pull/80","diff_url":"https://github.com/loggly/install-script/pull/80.diff","patch_url":"https://github.com/loggly/install-script/pull/80.patch"},"body":"This patch eliminates:\r\n\r\n    sudo: sorry, you must have a tty to run sudo\r\n\r\nexceptions when configuring Loggly via an AWS EC2 user data script.\r\n\r\nSince ```checkIfUserHasRootPrivileges()``` on https://github.com/loggly/install-script/blob/master/Linux%20Script/configure-linux.sh#L190 requires script to be run as root the use of sudo is entirely superfluous. :-)\r\n\r\nUntil this patch is accepted, we're correcting in the user data script via:\r\n\r\n    sed -i.original 's/sudo //' configure-linux.sh"},"comment":{"url":"https://api.github.com/repos/loggly/install-script/issues/comments/179954064","html_url":"https://github.com/loggly/install-script/pull/80#issuecomment-179954064","issue_url":"https://api.github.com/repos/loggly/install-script/issues/80","id":179954064,"user":{"login":"tmornini","id":87,"avatar_url":"https://avatars.githubusercontent.com/u/87?v=3","gravatar_id":"","url":"https://api.github.com/users/tmornini","html_url":"https://github.com/tmornini","followers_url":"https://api.github.com/users/tmornini/followers","following_url":"https://api.github.com/users/tmornini/following{/other_user}","gists_url":"https://api.github.com/users/tmornini/gists{/gist_id}","starred_url":"https://api.github.com/users/tmornini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmornini/subscriptions","organizations_url":"https://api.github.com/users/tmornini/orgs","repos_url":"https://api.github.com/users/tmornini/repos","events_url":"https://api.github.com/users/tmornini/events{/privacy}","received_events_url":"https://api.github.com/users/tmornini/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T17:18:29Z","updated_at":"2016-02-04T17:18:29Z","body":"@psquickitjayant Ping"}}