{"action":"created","comment":{"url":"https://api.github.com/repos/ocf/utils/pulls/comments/139275925","pull_request_review_id":63192354,"id":139275925,"diff_hunk":"@@ -0,0 +1,66 @@\n+#!/bin/bash\n+\n+# Creates symlink to user's webroot. If the symlink exists and files\n+# are present in webroot, they are backed up in the user's home directory.\n+# A user's database is created or, if it already exists, the password \n+# is reset. WordPress is installed and the wp-config file is filled\n+# out with the requisite information. Further configuration can be \n+# done by the user from a browser.  \n+#\n+# WARNING: This script should generally be run on a account without\n+#          an existing website or database!","path":"makeservices/easywp","position":11,"original_position":11,"commit_id":"6442d3dba3b84c2421bb3378447ac72bade403c6","original_commit_id":"6442d3dba3b84c2421bb3378447ac72bade403c6","user":{"login":"kkuehler","id":28680078,"avatar_url":"https://avatars0.githubusercontent.com/u/28680078?v=4","gravatar_id":"","url":"https://api.github.com/users/kkuehler","html_url":"https://github.com/kkuehler","followers_url":"https://api.github.com/users/kkuehler/followers","following_url":"https://api.github.com/users/kkuehler/following{/other_user}","gists_url":"https://api.github.com/users/kkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuehler/subscriptions","organizations_url":"https://api.github.com/users/kkuehler/orgs","repos_url":"https://api.github.com/users/kkuehler/repos","events_url":"https://api.github.com/users/kkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/kkuehler/received_events","type":"User","site_admin":false},"body":"From talking with @Baisang, I thought that the user would click a button on the OCF website (https://www.ocf.berkeley.edu/account/commands/) to set up WordPress and it would run this script on tsunami as that user. Then they setup WordPress without having to touch a terminal. If that's the case there should be a warning prompt, but on the web interface. If not then I agree there should be a cli warning. That said, we could pipe 'y' into the script if it was going to be called in response to a button click. ","created_at":"2017-09-16T02:17:31Z","updated_at":"2017-09-16T02:17:31Z","html_url":"https://github.com/ocf/utils/pull/62#discussion_r139275925","pull_request_url":"https://api.github.com/repos/ocf/utils/pulls/62","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ocf/utils/pulls/comments/139275925"},"html":{"href":"https://github.com/ocf/utils/pull/62#discussion_r139275925"},"pull_request":{"href":"https://api.github.com/repos/ocf/utils/pulls/62"}},"in_reply_to_id":139274644},"pull_request":{"url":"https://api.github.com/repos/ocf/utils/pulls/62","id":140732159,"html_url":"https://github.com/ocf/utils/pull/62","diff_url":"https://github.com/ocf/utils/pull/62.diff","patch_url":"https://github.com/ocf/utils/pull/62.patch","issue_url":"https://api.github.com/repos/ocf/utils/issues/62","number":62,"state":"open","locked":false,"title":"Add setup wordpress script","user":{"login":"kkuehler","id":28680078,"avatar_url":"https://avatars0.githubusercontent.com/u/28680078?v=4","gravatar_id":"","url":"https://api.github.com/users/kkuehler","html_url":"https://github.com/kkuehler","followers_url":"https://api.github.com/users/kkuehler/followers","following_url":"https://api.github.com/users/kkuehler/following{/other_user}","gists_url":"https://api.github.com/users/kkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuehler/subscriptions","organizations_url":"https://api.github.com/users/kkuehler/orgs","repos_url":"https://api.github.com/users/kkuehler/repos","events_url":"https://api.github.com/users/kkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/kkuehler/received_events","type":"User","site_admin":false},"body":"A script that an OCF user can run (ideally should be called in response to a registered user clicking a button on the OCF Website) to easily set up WordPress on their account and forgo all command line interaction. The user can finish setting up WordPress in a browser at https://www.ocf.berkeley.edu/~username","created_at":"2017-09-13T04:20:44Z","updated_at":"2017-09-16T02:17:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c02d2c06c2a66cf728fa8dee6b7a311f6ae4164c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ocf/utils/pulls/62/commits","review_comments_url":"https://api.github.com/repos/ocf/utils/pulls/62/comments","review_comment_url":"https://api.github.com/repos/ocf/utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ocf/utils/issues/62/comments","statuses_url":"https://api.github.com/repos/ocf/utils/statuses/6442d3dba3b84c2421bb3378447ac72bade403c6","head":{"label":"kkuehler:wordpress-easy-setup","ref":"wordpress-easy-setup","sha":"6442d3dba3b84c2421bb3378447ac72bade403c6","user":{"login":"kkuehler","id":28680078,"avatar_url":"https://avatars0.githubusercontent.com/u/28680078?v=4","gravatar_id":"","url":"https://api.github.com/users/kkuehler","html_url":"https://github.com/kkuehler","followers_url":"https://api.github.com/users/kkuehler/followers","following_url":"https://api.github.com/users/kkuehler/following{/other_user}","gists_url":"https://api.github.com/users/kkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuehler/subscriptions","organizations_url":"https://api.github.com/users/kkuehler/orgs","repos_url":"https://api.github.com/users/kkuehler/repos","events_url":"https://api.github.com/users/kkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/kkuehler/received_events","type":"User","site_admin":false},"repo":{"id":103350211,"name":"utils","full_name":"kkuehler/utils","owner":{"login":"kkuehler","id":28680078,"avatar_url":"https://avatars0.githubusercontent.com/u/28680078?v=4","gravatar_id":"","url":"https://api.github.com/users/kkuehler","html_url":"https://github.com/kkuehler","followers_url":"https://api.github.com/users/kkuehler/followers","following_url":"https://api.github.com/users/kkuehler/following{/other_user}","gists_url":"https://api.github.com/users/kkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuehler/subscriptions","organizations_url":"https://api.github.com/users/kkuehler/orgs","repos_url":"https://api.github.com/users/kkuehler/repos","events_url":"https://api.github.com/users/kkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/kkuehler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kkuehler/utils","description":"User and staff utilities for the Open Computing Facility","fork":true,"url":"https://api.github.com/repos/kkuehler/utils","forks_url":"https://api.github.com/repos/kkuehler/utils/forks","keys_url":"https://api.github.com/repos/kkuehler/utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kkuehler/utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kkuehler/utils/teams","hooks_url":"https://api.github.com/repos/kkuehler/utils/hooks","issue_events_url":"https://api.github.com/repos/kkuehler/utils/issues/events{/number}","events_url":"https://api.github.com/repos/kkuehler/utils/events","assignees_url":"https://api.github.com/repos/kkuehler/utils/assignees{/user}","branches_url":"https://api.github.com/repos/kkuehler/utils/branches{/branch}","tags_url":"https://api.github.com/repos/kkuehler/utils/tags","blobs_url":"https://api.github.com/repos/kkuehler/utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kkuehler/utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kkuehler/utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/kkuehler/utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kkuehler/utils/statuses/{sha}","languages_url":"https://api.github.com/repos/kkuehler/utils/languages","stargazers_url":"https://api.github.com/repos/kkuehler/utils/stargazers","contributors_url":"https://api.github.com/repos/kkuehler/utils/contributors","subscribers_url":"https://api.github.com/repos/kkuehler/utils/subscribers","subscription_url":"https://api.github.com/repos/kkuehler/utils/subscription","commits_url":"https://api.github.com/repos/kkuehler/utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/kkuehler/utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/kkuehler/utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/kkuehler/utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/kkuehler/utils/contents/{+path}","compare_url":"https://api.github.com/repos/kkuehler/utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kkuehler/utils/merges","archive_url":"https://api.github.com/repos/kkuehler/utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kkuehler/utils/downloads","issues_url":"https://api.github.com/repos/kkuehler/utils/issues{/number}","pulls_url":"https://api.github.com/repos/kkuehler/utils/pulls{/number}","milestones_url":"https://api.github.com/repos/kkuehler/utils/milestones{/number}","notifications_url":"https://api.github.com/repos/kkuehler/utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kkuehler/utils/labels{/name}","releases_url":"https://api.github.com/repos/kkuehler/utils/releases{/id}","deployments_url":"https://api.github.com/repos/kkuehler/utils/deployments","created_at":"2017-09-13T03:44:48Z","updated_at":"2017-09-13T03:44:49Z","pushed_at":"2017-09-16T00:59:50Z","git_url":"git://github.com/kkuehler/utils.git","ssh_url":"git@github.com:kkuehler/utils.git","clone_url":"https://github.com/kkuehler/utils.git","svn_url":"https://github.com/kkuehler/utils","homepage":"https://www.ocf.berkeley.edu/","size":452,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"ocf:master","ref":"master","sha":"c1494b5aaaaa55c6bf29b68bec1f80896971c586","user":{"login":"ocf","id":1504667,"avatar_url":"https://avatars2.githubusercontent.com/u/1504667?v=4","gravatar_id":"","url":"https://api.github.com/users/ocf","html_url":"https://github.com/ocf","followers_url":"https://api.github.com/users/ocf/followers","following_url":"https://api.github.com/users/ocf/following{/other_user}","gists_url":"https://api.github.com/users/ocf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocf/subscriptions","organizations_url":"https://api.github.com/users/ocf/orgs","repos_url":"https://api.github.com/users/ocf/repos","events_url":"https://api.github.com/users/ocf/events{/privacy}","received_events_url":"https://api.github.com/users/ocf/received_events","type":"Organization","site_admin":false},"repo":{"id":20369692,"name":"utils","full_name":"ocf/utils","owner":{"login":"ocf","id":1504667,"avatar_url":"https://avatars2.githubusercontent.com/u/1504667?v=4","gravatar_id":"","url":"https://api.github.com/users/ocf","html_url":"https://github.com/ocf","followers_url":"https://api.github.com/users/ocf/followers","following_url":"https://api.github.com/users/ocf/following{/other_user}","gists_url":"https://api.github.com/users/ocf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocf/subscriptions","organizations_url":"https://api.github.com/users/ocf/orgs","repos_url":"https://api.github.com/users/ocf/repos","events_url":"https://api.github.com/users/ocf/events{/privacy}","received_events_url":"https://api.github.com/users/ocf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ocf/utils","description":"User and staff utilities for the Open Computing Facility","fork":false,"url":"https://api.github.com/repos/ocf/utils","forks_url":"https://api.github.com/repos/ocf/utils/forks","keys_url":"https://api.github.com/repos/ocf/utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ocf/utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ocf/utils/teams","hooks_url":"https://api.github.com/repos/ocf/utils/hooks","issue_events_url":"https://api.github.com/repos/ocf/utils/issues/events{/number}","events_url":"https://api.github.com/repos/ocf/utils/events","assignees_url":"https://api.github.com/repos/ocf/utils/assignees{/user}","branches_url":"https://api.github.com/repos/ocf/utils/branches{/branch}","tags_url":"https://api.github.com/repos/ocf/utils/tags","blobs_url":"https://api.github.com/repos/ocf/utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ocf/utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ocf/utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/ocf/utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ocf/utils/statuses/{sha}","languages_url":"https://api.github.com/repos/ocf/utils/languages","stargazers_url":"https://api.github.com/repos/ocf/utils/stargazers","contributors_url":"https://api.github.com/repos/ocf/utils/contributors","subscribers_url":"https://api.github.com/repos/ocf/utils/subscribers","subscription_url":"https://api.github.com/repos/ocf/utils/subscription","commits_url":"https://api.github.com/repos/ocf/utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/ocf/utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/ocf/utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/ocf/utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/ocf/utils/contents/{+path}","compare_url":"https://api.github.com/repos/ocf/utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ocf/utils/merges","archive_url":"https://api.github.com/repos/ocf/utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ocf/utils/downloads","issues_url":"https://api.github.com/repos/ocf/utils/issues{/number}","pulls_url":"https://api.github.com/repos/ocf/utils/pulls{/number}","milestones_url":"https://api.github.com/repos/ocf/utils/milestones{/number}","notifications_url":"https://api.github.com/repos/ocf/utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ocf/utils/labels{/name}","releases_url":"https://api.github.com/repos/ocf/utils/releases{/id}","deployments_url":"https://api.github.com/repos/ocf/utils/deployments","created_at":"2014-06-01T02:50:07Z","updated_at":"2017-05-04T19:54:20Z","pushed_at":"2017-09-16T00:59:51Z","git_url":"git://github.com/ocf/utils.git","ssh_url":"git@github.com:ocf/utils.git","clone_url":"https://github.com/ocf/utils.git","svn_url":"https://github.com/ocf/utils","homepage":"https://www.ocf.berkeley.edu/","size":449,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ocf/utils/pulls/62"},"html":{"href":"https://github.com/ocf/utils/pull/62"},"issue":{"href":"https://api.github.com/repos/ocf/utils/issues/62"},"comments":{"href":"https://api.github.com/repos/ocf/utils/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/ocf/utils/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/ocf/utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ocf/utils/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/ocf/utils/statuses/6442d3dba3b84c2421bb3378447ac72bade403c6"}},"author_association":"NONE"}}
{"actor":{"display_login":"kkuehler"}}