{"action":"created","comment":{"url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/comments/51495276","id":51495276,"diff_hunk":"@@ -57,14 +60,18 @@ fi\n #  - server's hostname\n if [ -z \"$BANNER\" ]\n then\n-  if docker ps -a | grep uproxy-sshd >/dev/null\n-  then\n-    if [ `docker inspect --format='{{ .State.Status }}' uproxy-sshd` != \"running\" ]\n+    if docker ps -a | grep uproxy-sshd >/dev/null\n     then\n-      docker start uproxy-sshd > /dev/null\n+        if [ `docker inspect --format='{{ .State.Status }}' uproxy-sshd` != \"running\" ]","path":"testing/run-scripts/run_cloud.sh","position":null,"original_position":75,"commit_id":"c311987f7136720cfee1360df2c0fcbc485d3d3b","original_commit_id":"be5328bedc9163dd776b86b994d3f2e00c06debf","user":{"login":"trevj","id":5142116,"avatar_url":"https://avatars.githubusercontent.com/u/5142116?v=3","gravatar_id":"","url":"https://api.github.com/users/trevj","html_url":"https://github.com/trevj","followers_url":"https://api.github.com/users/trevj/followers","following_url":"https://api.github.com/users/trevj/following{/other_user}","gists_url":"https://api.github.com/users/trevj/gists{/gist_id}","starred_url":"https://api.github.com/users/trevj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevj/subscriptions","organizations_url":"https://api.github.com/users/trevj/orgs","repos_url":"https://api.github.com/users/trevj/repos","events_url":"https://api.github.com/users/trevj/events{/privacy}","received_events_url":"https://api.github.com/users/trevj/received_events","type":"User","site_admin":false},"body":"Yup! Two spaces would be my vote, keep it the same as our TS code. No need to change this pull request now...I can do a one-time followup.","created_at":"2016-02-01T22:55:17Z","updated_at":"2016-02-01T22:55:17Z","html_url":"https://github.com/uProxy/uproxy-docker/pull/49#discussion_r51495276","pull_request_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/comments/51495276"},"html":{"href":"https://github.com/uProxy/uproxy-docker/pull/49#discussion_r51495276"},"pull_request":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49","id":57546312,"html_url":"https://github.com/uProxy/uproxy-docker/pull/49","diff_url":"https://github.com/uProxy/uproxy-docker/pull/49.diff","patch_url":"https://github.com/uProxy/uproxy-docker/pull/49.patch","issue_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/49","number":49,"state":"open","locked":false,"title":"add -u argument for updating cloud installs","user":{"login":"soycode","id":587921,"avatar_url":"https://avatars.githubusercontent.com/u/587921?v=3","gravatar_id":"","url":"https://api.github.com/users/soycode","html_url":"https://github.com/soycode","followers_url":"https://api.github.com/users/soycode/followers","following_url":"https://api.github.com/users/soycode/following{/other_user}","gists_url":"https://api.github.com/users/soycode/gists{/gist_id}","starred_url":"https://api.github.com/users/soycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soycode/subscriptions","organizations_url":"https://api.github.com/users/soycode/orgs","repos_url":"https://api.github.com/users/soycode/repos","events_url":"https://api.github.com/users/soycode/events{/privacy}","received_events_url":"https://api.github.com/users/soycode/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/uProxy/uproxy/issues/2038 - adds a `-u` parameter that is basically just `-r` with the invite code saved. Main lines changed are around 98. Ran it twice on the same instance, first without `-u` and then with it and it returned the same invite code at the end and kept working with the same client (that had added it after the first run). Of course I ran it back to back so it didn't actually *update* the server, just rebuilt it, but it should work for actual updates as well.\r\n\r\nThe rest of the diff is because emacs ended up being somewhat insistent on re-indenting this file. I was going to go back and fight with it but I realized that it is now actually formatted the same way as https://github.com/uProxy/uproxy-docker/blob/master/testing/integration/test/bin/load-zork.sh - so I decided to leave it as is.\r\n\r\nI don't have strong \"style\" opinions, I tend towards 2 space indentation for most code but think 4 is fine for bash. My main thought is just to be consistent, so if we want to switch this back to 2 then I'll probably try to switch some of the others to 2 as well.","created_at":"2016-01-28T18:43:43Z","updated_at":"2016-02-01T22:55:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3bb06c4cd33934d43ead5430ead8b6e965e41b6","assignee":{"login":"trevj","id":5142116,"avatar_url":"https://avatars.githubusercontent.com/u/5142116?v=3","gravatar_id":"","url":"https://api.github.com/users/trevj","html_url":"https://github.com/trevj","followers_url":"https://api.github.com/users/trevj/followers","following_url":"https://api.github.com/users/trevj/following{/other_user}","gists_url":"https://api.github.com/users/trevj/gists{/gist_id}","starred_url":"https://api.github.com/users/trevj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevj/subscriptions","organizations_url":"https://api.github.com/users/trevj/orgs","repos_url":"https://api.github.com/users/trevj/repos","events_url":"https://api.github.com/users/trevj/events{/privacy}","received_events_url":"https://api.github.com/users/trevj/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49/commits","review_comments_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49/comments","review_comment_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/49/comments","statuses_url":"https://api.github.com/repos/uProxy/uproxy-docker/statuses/c311987f7136720cfee1360df2c0fcbc485d3d3b","head":{"label":"uProxy:soycode-updatecloud","ref":"soycode-updatecloud","sha":"c311987f7136720cfee1360df2c0fcbc485d3d3b","user":{"login":"uProxy","id":6548286,"avatar_url":"https://avatars.githubusercontent.com/u/6548286?v=3","gravatar_id":"","url":"https://api.github.com/users/uProxy","html_url":"https://github.com/uProxy","followers_url":"https://api.github.com/users/uProxy/followers","following_url":"https://api.github.com/users/uProxy/following{/other_user}","gists_url":"https://api.github.com/users/uProxy/gists{/gist_id}","starred_url":"https://api.github.com/users/uProxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uProxy/subscriptions","organizations_url":"https://api.github.com/users/uProxy/orgs","repos_url":"https://api.github.com/users/uProxy/repos","events_url":"https://api.github.com/users/uProxy/events{/privacy}","received_events_url":"https://api.github.com/users/uProxy/received_events","type":"Organization","site_admin":false},"repo":{"id":27145384,"name":"uproxy-docker","full_name":"uProxy/uproxy-docker","owner":{"login":"uProxy","id":6548286,"avatar_url":"https://avatars.githubusercontent.com/u/6548286?v=3","gravatar_id":"","url":"https://api.github.com/users/uProxy","html_url":"https://github.com/uProxy","followers_url":"https://api.github.com/users/uProxy/followers","following_url":"https://api.github.com/users/uProxy/following{/other_user}","gists_url":"https://api.github.com/users/uProxy/gists{/gist_id}","starred_url":"https://api.github.com/users/uProxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uProxy/subscriptions","organizations_url":"https://api.github.com/users/uProxy/orgs","repos_url":"https://api.github.com/users/uProxy/repos","events_url":"https://api.github.com/users/uProxy/events{/privacy}","received_events_url":"https://api.github.com/users/uProxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uProxy/uproxy-docker","description":"Docker images for testing and deployment","fork":false,"url":"https://api.github.com/repos/uProxy/uproxy-docker","forks_url":"https://api.github.com/repos/uProxy/uproxy-docker/forks","keys_url":"https://api.github.com/repos/uProxy/uproxy-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uProxy/uproxy-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uProxy/uproxy-docker/teams","hooks_url":"https://api.github.com/repos/uProxy/uproxy-docker/hooks","issue_events_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/events{/number}","events_url":"https://api.github.com/repos/uProxy/uproxy-docker/events","assignees_url":"https://api.github.com/repos/uProxy/uproxy-docker/assignees{/user}","branches_url":"https://api.github.com/repos/uProxy/uproxy-docker/branches{/branch}","tags_url":"https://api.github.com/repos/uProxy/uproxy-docker/tags","blobs_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uProxy/uproxy-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/uProxy/uproxy-docker/languages","stargazers_url":"https://api.github.com/repos/uProxy/uproxy-docker/stargazers","contributors_url":"https://api.github.com/repos/uProxy/uproxy-docker/contributors","subscribers_url":"https://api.github.com/repos/uProxy/uproxy-docker/subscribers","subscription_url":"https://api.github.com/repos/uProxy/uproxy-docker/subscription","commits_url":"https://api.github.com/repos/uProxy/uproxy-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/uProxy/uproxy-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/uProxy/uproxy-docker/contents/{+path}","compare_url":"https://api.github.com/repos/uProxy/uproxy-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uProxy/uproxy-docker/merges","archive_url":"https://api.github.com/repos/uProxy/uproxy-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uProxy/uproxy-docker/downloads","issues_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues{/number}","pulls_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/uProxy/uproxy-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/uProxy/uproxy-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uProxy/uproxy-docker/labels{/name}","releases_url":"https://api.github.com/repos/uProxy/uproxy-docker/releases{/id}","deployments_url":"https://api.github.com/repos/uProxy/uproxy-docker/deployments","created_at":"2014-11-25T20:49:20Z","updated_at":"2016-01-16T09:52:19Z","pushed_at":"2016-02-01T22:54:57Z","git_url":"git://github.com/uProxy/uproxy-docker.git","ssh_url":"git@github.com:uProxy/uproxy-docker.git","clone_url":"https://github.com/uProxy/uproxy-docker.git","svn_url":"https://github.com/uProxy/uproxy-docker","homepage":null,"size":156,"stargazers_count":6,"watchers_count":6,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"uProxy:master","ref":"master","sha":"0ffab038a3422ad1d11016c793b76fa05df72d02","user":{"login":"uProxy","id":6548286,"avatar_url":"https://avatars.githubusercontent.com/u/6548286?v=3","gravatar_id":"","url":"https://api.github.com/users/uProxy","html_url":"https://github.com/uProxy","followers_url":"https://api.github.com/users/uProxy/followers","following_url":"https://api.github.com/users/uProxy/following{/other_user}","gists_url":"https://api.github.com/users/uProxy/gists{/gist_id}","starred_url":"https://api.github.com/users/uProxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uProxy/subscriptions","organizations_url":"https://api.github.com/users/uProxy/orgs","repos_url":"https://api.github.com/users/uProxy/repos","events_url":"https://api.github.com/users/uProxy/events{/privacy}","received_events_url":"https://api.github.com/users/uProxy/received_events","type":"Organization","site_admin":false},"repo":{"id":27145384,"name":"uproxy-docker","full_name":"uProxy/uproxy-docker","owner":{"login":"uProxy","id":6548286,"avatar_url":"https://avatars.githubusercontent.com/u/6548286?v=3","gravatar_id":"","url":"https://api.github.com/users/uProxy","html_url":"https://github.com/uProxy","followers_url":"https://api.github.com/users/uProxy/followers","following_url":"https://api.github.com/users/uProxy/following{/other_user}","gists_url":"https://api.github.com/users/uProxy/gists{/gist_id}","starred_url":"https://api.github.com/users/uProxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uProxy/subscriptions","organizations_url":"https://api.github.com/users/uProxy/orgs","repos_url":"https://api.github.com/users/uProxy/repos","events_url":"https://api.github.com/users/uProxy/events{/privacy}","received_events_url":"https://api.github.com/users/uProxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uProxy/uproxy-docker","description":"Docker images for testing and deployment","fork":false,"url":"https://api.github.com/repos/uProxy/uproxy-docker","forks_url":"https://api.github.com/repos/uProxy/uproxy-docker/forks","keys_url":"https://api.github.com/repos/uProxy/uproxy-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uProxy/uproxy-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uProxy/uproxy-docker/teams","hooks_url":"https://api.github.com/repos/uProxy/uproxy-docker/hooks","issue_events_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/events{/number}","events_url":"https://api.github.com/repos/uProxy/uproxy-docker/events","assignees_url":"https://api.github.com/repos/uProxy/uproxy-docker/assignees{/user}","branches_url":"https://api.github.com/repos/uProxy/uproxy-docker/branches{/branch}","tags_url":"https://api.github.com/repos/uProxy/uproxy-docker/tags","blobs_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uProxy/uproxy-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/uProxy/uproxy-docker/languages","stargazers_url":"https://api.github.com/repos/uProxy/uproxy-docker/stargazers","contributors_url":"https://api.github.com/repos/uProxy/uproxy-docker/contributors","subscribers_url":"https://api.github.com/repos/uProxy/uproxy-docker/subscribers","subscription_url":"https://api.github.com/repos/uProxy/uproxy-docker/subscription","commits_url":"https://api.github.com/repos/uProxy/uproxy-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/uProxy/uproxy-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/uProxy/uproxy-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/uProxy/uproxy-docker/contents/{+path}","compare_url":"https://api.github.com/repos/uProxy/uproxy-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uProxy/uproxy-docker/merges","archive_url":"https://api.github.com/repos/uProxy/uproxy-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uProxy/uproxy-docker/downloads","issues_url":"https://api.github.com/repos/uProxy/uproxy-docker/issues{/number}","pulls_url":"https://api.github.com/repos/uProxy/uproxy-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/uProxy/uproxy-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/uProxy/uproxy-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uProxy/uproxy-docker/labels{/name}","releases_url":"https://api.github.com/repos/uProxy/uproxy-docker/releases{/id}","deployments_url":"https://api.github.com/repos/uProxy/uproxy-docker/deployments","created_at":"2014-11-25T20:49:20Z","updated_at":"2016-01-16T09:52:19Z","pushed_at":"2016-02-01T22:54:57Z","git_url":"git://github.com/uProxy/uproxy-docker.git","ssh_url":"git@github.com:uProxy/uproxy-docker.git","clone_url":"https://github.com/uProxy/uproxy-docker.git","svn_url":"https://github.com/uProxy/uproxy-docker","homepage":null,"size":156,"stargazers_count":6,"watchers_count":6,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49"},"html":{"href":"https://github.com/uProxy/uproxy-docker/pull/49"},"issue":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/issues/49"},"comments":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/uProxy/uproxy-docker/statuses/c311987f7136720cfee1360df2c0fcbc485d3d3b"}}}}