{"action":"created","comment":{"url":"https://api.github.com/repos/tork-a/live-cd/pulls/comments/43477387","id":43477387,"diff_hunk":"@@ -113,21 +113,42 @@ mkdir -p /home/ubuntu/catkin_ws/src\n cd /home/ubuntu/catkin_ws\n wstool init src || echo \"already initilized\"\n \n-# setup ros_tutorials\n+# create users\n+apt-get -y -q install passwd openssl\n+groupadd -g 990 beginner\n+groupadd -g 991 intermediate\n+groupadd -g 992 baxter\n+useradd -p U6aMy0wojraho -u 990 -g 990 -s /bin/bash -m beginner\n+useradd -p U6aMy0wojraho -u 991 -g 991 -s /bin/bash -m intermediate\n+useradd -p U6aMy0wojraho -u 992 -g 992 -s /bin/bash -m baxter\n+\n+mkdir -p /home/ubuntu/\n+chown -R 999.999 /home/ubuntu/\n+#\n+. /opt/ros/$ROSDISTRO/setup.sh\n+\n+( # beginner seminar\n+mkdir -p /home/beginner/catkin_ws/src\n+cd /home/beginner/catkin_ws\n+wstool init src || echo \"already initilized\"\n wstool set -t src roscpp_tutorials https://github.com/ros/ros_tutorials.git --git -y || echo \"already configured\"\n-# for baxter seminar\n-wstool merge -t src https://raw.github.com/tork-a/baxter_seminar/master/baxter_seminar.rosinstall\n+wstool update -t src\n+rosdep install -r -n -y --rosdistro $ROSDISTRO --from-paths src --ignore-src\n+catkin build\n+chown -R 990.990 /home/beginner/catkin_ws\n+)\n+\n \n-# update and install\n+( # baxter workshop\n+mkdir -p /home/baxter/catkin_ws/src\n+cd /home/baxter/catkin_ws\n+wstool init src || echo \"already initilized\"\n+wstool merge -t src https://raw.github.com/tork-a/baxter_seminar/master/baxter_seminar.rosinstall\n wstool update -t src\n rosdep install -r -n -y --rosdistro $ROSDISTRO --from-paths src --ignore-src\n-# compile with catkin\n-## until catkin_tools 2.0.x (http://stackoverflow.com/questions/27969057/cant-launch-catkin-build-from-jenkins-job)\n-(cd /tmp; apt-get install -qq -y python-setuptools; git clone https://github.com/catkin/catkin_tools || echo \"already downloaded\"; cd catkin_tools; python setup.py install)\n-. /opt/ros/$ROSDISTRO/setup.sh\n catkin build -p 1 --no-status\n-cd -\n-chown -R 999.999 /home/ubuntu/catkin_ws\n+chown -R 992.992 /home/baxter/catkin_ws","path":"00-create-cd.sh","position":48,"original_position":48,"commit_id":"049f556450e489c1b8c227f15d8486546a3ded0c","original_commit_id":"049f556450e489c1b8c227f15d8486546a3ded0c","user":{"login":"k-okada","id":493276,"avatar_url":"https://avatars.githubusercontent.com/u/493276?v=3","gravatar_id":"","url":"https://api.github.com/users/k-okada","html_url":"https://github.com/k-okada","followers_url":"https://api.github.com/users/k-okada/followers","following_url":"https://api.github.com/users/k-okada/following{/other_user}","gists_url":"https://api.github.com/users/k-okada/gists{/gist_id}","starred_url":"https://api.github.com/users/k-okada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-okada/subscriptions","organizations_url":"https://api.github.com/users/k-okada/orgs","repos_url":"https://api.github.com/users/k-okada/repos","events_url":"https://api.github.com/users/k-okada/events{/privacy}","received_events_url":"https://api.github.com/users/k-okada/received_events","type":"User","site_admin":false},"body":"複数のユーザつくるの，なにかうまく行かなかった気がします．なぜかわすれたけど，どこかにメールが残っているかもしれない．","created_at":"2015-10-30T07:26:12Z","updated_at":"2015-10-30T07:26:12Z","html_url":"https://github.com/tork-a/live-cd/pull/68#discussion_r43477387","pull_request_url":"https://api.github.com/repos/tork-a/live-cd/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/comments/43477387"},"html":{"href":"https://github.com/tork-a/live-cd/pull/68#discussion_r43477387"},"pull_request":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/tork-a/live-cd/pulls/68","id":49207208,"html_url":"https://github.com/tork-a/live-cd/pull/68","diff_url":"https://github.com/tork-a/live-cd/pull/68.diff","patch_url":"https://github.com/tork-a/live-cd/pull/68.patch","issue_url":"https://api.github.com/repos/tork-a/live-cd/issues/68","number":68,"state":"open","locked":false,"title":"(Rebased) add baxter/beginner/intermediate users and dev source is under his home directory","user":{"login":"130s","id":1840401,"avatar_url":"https://avatars.githubusercontent.com/u/1840401?v=3","gravatar_id":"","url":"https://api.github.com/users/130s","html_url":"https://github.com/130s","followers_url":"https://api.github.com/users/130s/followers","following_url":"https://api.github.com/users/130s/following{/other_user}","gists_url":"https://api.github.com/users/130s/gists{/gist_id}","starred_url":"https://api.github.com/users/130s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/130s/subscriptions","organizations_url":"https://api.github.com/users/130s/orgs","repos_url":"https://api.github.com/users/130s/repos","events_url":"https://api.github.com/users/130s/events{/privacy}","received_events_url":"https://api.github.com/users/130s/received_events","type":"User","site_admin":false},"body":"- Rebase of https://github.com/tork-a/live-cd/pull/49\r\n- Use `catkin_ws` instead of `ros_ws`\r\n","created_at":"2015-10-29T22:10:10Z","updated_at":"2015-10-30T07:26:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61b140e984ba8970b5b87217ffcd14cedfcdc198","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tork-a/live-cd/pulls/68/commits","review_comments_url":"https://api.github.com/repos/tork-a/live-cd/pulls/68/comments","review_comment_url":"https://api.github.com/repos/tork-a/live-cd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tork-a/live-cd/issues/68/comments","statuses_url":"https://api.github.com/repos/tork-a/live-cd/statuses/049f556450e489c1b8c227f15d8486546a3ded0c","head":{"label":"130s:add_user","ref":"add_user","sha":"049f556450e489c1b8c227f15d8486546a3ded0c","user":{"login":"130s","id":1840401,"avatar_url":"https://avatars.githubusercontent.com/u/1840401?v=3","gravatar_id":"","url":"https://api.github.com/users/130s","html_url":"https://github.com/130s","followers_url":"https://api.github.com/users/130s/followers","following_url":"https://api.github.com/users/130s/following{/other_user}","gists_url":"https://api.github.com/users/130s/gists{/gist_id}","starred_url":"https://api.github.com/users/130s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/130s/subscriptions","organizations_url":"https://api.github.com/users/130s/orgs","repos_url":"https://api.github.com/users/130s/repos","events_url":"https://api.github.com/users/130s/events{/privacy}","received_events_url":"https://api.github.com/users/130s/received_events","type":"User","site_admin":false},"repo":{"id":18663201,"name":"live-cd","full_name":"130s/live-cd","owner":{"login":"130s","id":1840401,"avatar_url":"https://avatars.githubusercontent.com/u/1840401?v=3","gravatar_id":"","url":"https://api.github.com/users/130s","html_url":"https://github.com/130s","followers_url":"https://api.github.com/users/130s/followers","following_url":"https://api.github.com/users/130s/following{/other_user}","gists_url":"https://api.github.com/users/130s/gists{/gist_id}","starred_url":"https://api.github.com/users/130s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/130s/subscriptions","organizations_url":"https://api.github.com/users/130s/orgs","repos_url":"https://api.github.com/users/130s/repos","events_url":"https://api.github.com/users/130s/events{/privacy}","received_events_url":"https://api.github.com/users/130s/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/130s/live-cd","description":"script to create live cd/usb","fork":true,"url":"https://api.github.com/repos/130s/live-cd","forks_url":"https://api.github.com/repos/130s/live-cd/forks","keys_url":"https://api.github.com/repos/130s/live-cd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/130s/live-cd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/130s/live-cd/teams","hooks_url":"https://api.github.com/repos/130s/live-cd/hooks","issue_events_url":"https://api.github.com/repos/130s/live-cd/issues/events{/number}","events_url":"https://api.github.com/repos/130s/live-cd/events","assignees_url":"https://api.github.com/repos/130s/live-cd/assignees{/user}","branches_url":"https://api.github.com/repos/130s/live-cd/branches{/branch}","tags_url":"https://api.github.com/repos/130s/live-cd/tags","blobs_url":"https://api.github.com/repos/130s/live-cd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/130s/live-cd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/130s/live-cd/git/refs{/sha}","trees_url":"https://api.github.com/repos/130s/live-cd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/130s/live-cd/statuses/{sha}","languages_url":"https://api.github.com/repos/130s/live-cd/languages","stargazers_url":"https://api.github.com/repos/130s/live-cd/stargazers","contributors_url":"https://api.github.com/repos/130s/live-cd/contributors","subscribers_url":"https://api.github.com/repos/130s/live-cd/subscribers","subscription_url":"https://api.github.com/repos/130s/live-cd/subscription","commits_url":"https://api.github.com/repos/130s/live-cd/commits{/sha}","git_commits_url":"https://api.github.com/repos/130s/live-cd/git/commits{/sha}","comments_url":"https://api.github.com/repos/130s/live-cd/comments{/number}","issue_comment_url":"https://api.github.com/repos/130s/live-cd/issues/comments{/number}","contents_url":"https://api.github.com/repos/130s/live-cd/contents/{+path}","compare_url":"https://api.github.com/repos/130s/live-cd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/130s/live-cd/merges","archive_url":"https://api.github.com/repos/130s/live-cd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/130s/live-cd/downloads","issues_url":"https://api.github.com/repos/130s/live-cd/issues{/number}","pulls_url":"https://api.github.com/repos/130s/live-cd/pulls{/number}","milestones_url":"https://api.github.com/repos/130s/live-cd/milestones{/number}","notifications_url":"https://api.github.com/repos/130s/live-cd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/130s/live-cd/labels{/name}","releases_url":"https://api.github.com/repos/130s/live-cd/releases{/id}","created_at":"2014-04-11T05:20:14Z","updated_at":"2014-04-11T15:49:26Z","pushed_at":"2015-10-29T22:08:28Z","git_url":"git://github.com/130s/live-cd.git","ssh_url":"git@github.com:130s/live-cd.git","clone_url":"https://github.com/130s/live-cd.git","svn_url":"https://github.com/130s/live-cd","homepage":null,"size":203,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tork-a:master","ref":"master","sha":"2bd55b1a4ca533e7a3ccc624b5fe760efe9a7123","user":{"login":"tork-a","id":5688443,"avatar_url":"https://avatars.githubusercontent.com/u/5688443?v=3","gravatar_id":"","url":"https://api.github.com/users/tork-a","html_url":"https://github.com/tork-a","followers_url":"https://api.github.com/users/tork-a/followers","following_url":"https://api.github.com/users/tork-a/following{/other_user}","gists_url":"https://api.github.com/users/tork-a/gists{/gist_id}","starred_url":"https://api.github.com/users/tork-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tork-a/subscriptions","organizations_url":"https://api.github.com/users/tork-a/orgs","repos_url":"https://api.github.com/users/tork-a/repos","events_url":"https://api.github.com/users/tork-a/events{/privacy}","received_events_url":"https://api.github.com/users/tork-a/received_events","type":"Organization","site_admin":false},"repo":{"id":18474161,"name":"live-cd","full_name":"tork-a/live-cd","owner":{"login":"tork-a","id":5688443,"avatar_url":"https://avatars.githubusercontent.com/u/5688443?v=3","gravatar_id":"","url":"https://api.github.com/users/tork-a","html_url":"https://github.com/tork-a","followers_url":"https://api.github.com/users/tork-a/followers","following_url":"https://api.github.com/users/tork-a/following{/other_user}","gists_url":"https://api.github.com/users/tork-a/gists{/gist_id}","starred_url":"https://api.github.com/users/tork-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tork-a/subscriptions","organizations_url":"https://api.github.com/users/tork-a/orgs","repos_url":"https://api.github.com/users/tork-a/repos","events_url":"https://api.github.com/users/tork-a/events{/privacy}","received_events_url":"https://api.github.com/users/tork-a/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tork-a/live-cd","description":"script to create live cd/usb","fork":false,"url":"https://api.github.com/repos/tork-a/live-cd","forks_url":"https://api.github.com/repos/tork-a/live-cd/forks","keys_url":"https://api.github.com/repos/tork-a/live-cd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tork-a/live-cd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tork-a/live-cd/teams","hooks_url":"https://api.github.com/repos/tork-a/live-cd/hooks","issue_events_url":"https://api.github.com/repos/tork-a/live-cd/issues/events{/number}","events_url":"https://api.github.com/repos/tork-a/live-cd/events","assignees_url":"https://api.github.com/repos/tork-a/live-cd/assignees{/user}","branches_url":"https://api.github.com/repos/tork-a/live-cd/branches{/branch}","tags_url":"https://api.github.com/repos/tork-a/live-cd/tags","blobs_url":"https://api.github.com/repos/tork-a/live-cd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tork-a/live-cd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tork-a/live-cd/git/refs{/sha}","trees_url":"https://api.github.com/repos/tork-a/live-cd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tork-a/live-cd/statuses/{sha}","languages_url":"https://api.github.com/repos/tork-a/live-cd/languages","stargazers_url":"https://api.github.com/repos/tork-a/live-cd/stargazers","contributors_url":"https://api.github.com/repos/tork-a/live-cd/contributors","subscribers_url":"https://api.github.com/repos/tork-a/live-cd/subscribers","subscription_url":"https://api.github.com/repos/tork-a/live-cd/subscription","commits_url":"https://api.github.com/repos/tork-a/live-cd/commits{/sha}","git_commits_url":"https://api.github.com/repos/tork-a/live-cd/git/commits{/sha}","comments_url":"https://api.github.com/repos/tork-a/live-cd/comments{/number}","issue_comment_url":"https://api.github.com/repos/tork-a/live-cd/issues/comments{/number}","contents_url":"https://api.github.com/repos/tork-a/live-cd/contents/{+path}","compare_url":"https://api.github.com/repos/tork-a/live-cd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tork-a/live-cd/merges","archive_url":"https://api.github.com/repos/tork-a/live-cd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tork-a/live-cd/downloads","issues_url":"https://api.github.com/repos/tork-a/live-cd/issues{/number}","pulls_url":"https://api.github.com/repos/tork-a/live-cd/pulls{/number}","milestones_url":"https://api.github.com/repos/tork-a/live-cd/milestones{/number}","notifications_url":"https://api.github.com/repos/tork-a/live-cd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tork-a/live-cd/labels{/name}","releases_url":"https://api.github.com/repos/tork-a/live-cd/releases{/id}","created_at":"2014-04-05T19:08:28Z","updated_at":"2015-10-29T21:59:01Z","pushed_at":"2015-10-30T07:23:07Z","git_url":"git://github.com/tork-a/live-cd.git","ssh_url":"git@github.com:tork-a/live-cd.git","clone_url":"https://github.com/tork-a/live-cd.git","svn_url":"https://github.com/tork-a/live-cd","homepage":null,"size":634,"stargazers_count":5,"watchers_count":5,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":8,"forks":5,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/68"},"html":{"href":"https://github.com/tork-a/live-cd/pull/68"},"issue":{"href":"https://api.github.com/repos/tork-a/live-cd/issues/68"},"comments":{"href":"https://api.github.com/repos/tork-a/live-cd/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tork-a/live-cd/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/tork-a/live-cd/statuses/049f556450e489c1b8c227f15d8486546a3ded0c"}}}}