{"action":"created","comment":{"url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/comments/27578623","id":27578623,"diff_hunk":"@@ -1,17 +1,37 @@\n #!/bin/bash\n+# SecureDrop persistent setup script for Tails \n \n # check for root\n if [[ $EUID -ne 0 ]]; then\n-    echo \"This script must be run as root\" 1>&2\n-    exit 1\n+\techo \"This script must be run as root\" 1>&2\n+\texit 1\n fi\n \n-PERSISTENT=/home/amnesia/Persistent\n+# set paths and variables\n+HOMEDIR=/home/amnesia\n+PERSISTENT=$HOMEDIR/Persistent\n INSTALL_DIR=$PERSISTENT/.securedrop\n ADDITIONS=$INSTALL_DIR/torrc_additions\n SCRIPT_PY=$INSTALL_DIR/securedrop_init.py\n SCRIPT_BIN=$INSTALL_DIR/securedrop_init\n DOTFILES=/live/persistence/TailsData_unlocked/dotfiles\n+TAILSCFG=/live/persistence/TailsData_unlocked\n+DESKTOP=$HOMEDIR/Desktop\n+ANSIBLE=$PERSISTENT/securedrop/install_files/ansible-base","path":"tails_files/install.sh","position":23,"original_position":23,"commit_id":"27b29ae139399965ece6752c3a3dc2184bed2c84","original_commit_id":"72137280b2496c647ac27c6f03c5e16543ac52c7","user":{"login":"garrettr","id":407302,"avatar_url":"https://avatars.githubusercontent.com/u/407302?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettr","html_url":"https://github.com/garrettr","followers_url":"https://api.github.com/users/garrettr/followers","following_url":"https://api.github.com/users/garrettr/following{/other_user}","gists_url":"https://api.github.com/users/garrettr/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettr/subscriptions","organizations_url":"https://api.github.com/users/garrettr/orgs","repos_url":"https://api.github.com/users/garrettr/repos","events_url":"https://api.github.com/users/garrettr/events{/privacy}","received_events_url":"https://api.github.com/users/garrettr/received_events","type":"User","site_admin":false},"body":"@ageis Looks like this is handled with the check `if [ ! -d \"$ANSIBLE\" ]` on line 30.","created_at":"2015-04-01T15:15:12Z","updated_at":"2015-04-01T15:15:12Z","html_url":"https://github.com/freedomofpress/securedrop/pull/955#discussion_r27578623","pull_request_url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955","_links":{"self":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/comments/27578623"},"html":{"href":"https://github.com/freedomofpress/securedrop/pull/955#discussion_r27578623"},"pull_request":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955"}}},"pull_request":{"url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955","id":32064125,"html_url":"https://github.com/freedomofpress/securedrop/pull/955","diff_url":"https://github.com/freedomofpress/securedrop/pull/955.diff","patch_url":"https://github.com/freedomofpress/securedrop/pull/955.patch","issue_url":"https://api.github.com/repos/freedomofpress/securedrop/issues/955","number":955,"state":"open","locked":false,"title":"Persistent automatic SecureDrop Tails setup","user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"body":"#922 redone","created_at":"2015-03-26T21:41:01Z","updated_at":"2015-04-01T15:15:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ce1df7c7f47225be245eb65b7a533bc2616809b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955/commits","review_comments_url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955/comments","review_comment_url":"https://api.github.com/repos/freedomofpress/securedrop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freedomofpress/securedrop/issues/955/comments","statuses_url":"https://api.github.com/repos/freedomofpress/securedrop/statuses/27b29ae139399965ece6752c3a3dc2184bed2c84","head":{"label":"ageis:tails-setup","ref":"tails-setup","sha":"27b29ae139399965ece6752c3a3dc2184bed2c84","user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"repo":{"id":32413457,"name":"securedrop","full_name":"ageis/securedrop","owner":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ageis/securedrop","description":"GitHub repository for the SecureDrop whistleblower platform. Do not submit tips here!","fork":true,"url":"https://api.github.com/repos/ageis/securedrop","forks_url":"https://api.github.com/repos/ageis/securedrop/forks","keys_url":"https://api.github.com/repos/ageis/securedrop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ageis/securedrop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ageis/securedrop/teams","hooks_url":"https://api.github.com/repos/ageis/securedrop/hooks","issue_events_url":"https://api.github.com/repos/ageis/securedrop/issues/events{/number}","events_url":"https://api.github.com/repos/ageis/securedrop/events","assignees_url":"https://api.github.com/repos/ageis/securedrop/assignees{/user}","branches_url":"https://api.github.com/repos/ageis/securedrop/branches{/branch}","tags_url":"https://api.github.com/repos/ageis/securedrop/tags","blobs_url":"https://api.github.com/repos/ageis/securedrop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ageis/securedrop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ageis/securedrop/git/refs{/sha}","trees_url":"https://api.github.com/repos/ageis/securedrop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ageis/securedrop/statuses/{sha}","languages_url":"https://api.github.com/repos/ageis/securedrop/languages","stargazers_url":"https://api.github.com/repos/ageis/securedrop/stargazers","contributors_url":"https://api.github.com/repos/ageis/securedrop/contributors","subscribers_url":"https://api.github.com/repos/ageis/securedrop/subscribers","subscription_url":"https://api.github.com/repos/ageis/securedrop/subscription","commits_url":"https://api.github.com/repos/ageis/securedrop/commits{/sha}","git_commits_url":"https://api.github.com/repos/ageis/securedrop/git/commits{/sha}","comments_url":"https://api.github.com/repos/ageis/securedrop/comments{/number}","issue_comment_url":"https://api.github.com/repos/ageis/securedrop/issues/comments{/number}","contents_url":"https://api.github.com/repos/ageis/securedrop/contents/{+path}","compare_url":"https://api.github.com/repos/ageis/securedrop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ageis/securedrop/merges","archive_url":"https://api.github.com/repos/ageis/securedrop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ageis/securedrop/downloads","issues_url":"https://api.github.com/repos/ageis/securedrop/issues{/number}","pulls_url":"https://api.github.com/repos/ageis/securedrop/pulls{/number}","milestones_url":"https://api.github.com/repos/ageis/securedrop/milestones{/number}","notifications_url":"https://api.github.com/repos/ageis/securedrop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ageis/securedrop/labels{/name}","releases_url":"https://api.github.com/repos/ageis/securedrop/releases{/id}","created_at":"2015-03-17T18:51:07Z","updated_at":"2015-03-21T00:23:07Z","pushed_at":"2015-03-31T08:28:33Z","git_url":"git://github.com/ageis/securedrop.git","ssh_url":"git@github.com:ageis/securedrop.git","clone_url":"https://github.com/ageis/securedrop.git","svn_url":"https://github.com/ageis/securedrop","homepage":"https://freedom.press/securedrop","size":32780,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"freedomofpress:develop","ref":"develop","sha":"7bb11fb1bf5a3629af46be604ade7dbde63e24cb","user":{"login":"freedomofpress","id":5388147,"avatar_url":"https://avatars.githubusercontent.com/u/5388147?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomofpress","html_url":"https://github.com/freedomofpress","followers_url":"https://api.github.com/users/freedomofpress/followers","following_url":"https://api.github.com/users/freedomofpress/following{/other_user}","gists_url":"https://api.github.com/users/freedomofpress/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomofpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomofpress/subscriptions","organizations_url":"https://api.github.com/users/freedomofpress/orgs","repos_url":"https://api.github.com/users/freedomofpress/repos","events_url":"https://api.github.com/users/freedomofpress/events{/privacy}","received_events_url":"https://api.github.com/users/freedomofpress/received_events","type":"Organization","site_admin":false},"repo":{"id":3156820,"name":"securedrop","full_name":"freedomofpress/securedrop","owner":{"login":"freedomofpress","id":5388147,"avatar_url":"https://avatars.githubusercontent.com/u/5388147?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomofpress","html_url":"https://github.com/freedomofpress","followers_url":"https://api.github.com/users/freedomofpress/followers","following_url":"https://api.github.com/users/freedomofpress/following{/other_user}","gists_url":"https://api.github.com/users/freedomofpress/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomofpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomofpress/subscriptions","organizations_url":"https://api.github.com/users/freedomofpress/orgs","repos_url":"https://api.github.com/users/freedomofpress/repos","events_url":"https://api.github.com/users/freedomofpress/events{/privacy}","received_events_url":"https://api.github.com/users/freedomofpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freedomofpress/securedrop","description":"GitHub repository for the SecureDrop whistleblower platform. Do not submit tips here!","fork":false,"url":"https://api.github.com/repos/freedomofpress/securedrop","forks_url":"https://api.github.com/repos/freedomofpress/securedrop/forks","keys_url":"https://api.github.com/repos/freedomofpress/securedrop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freedomofpress/securedrop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freedomofpress/securedrop/teams","hooks_url":"https://api.github.com/repos/freedomofpress/securedrop/hooks","issue_events_url":"https://api.github.com/repos/freedomofpress/securedrop/issues/events{/number}","events_url":"https://api.github.com/repos/freedomofpress/securedrop/events","assignees_url":"https://api.github.com/repos/freedomofpress/securedrop/assignees{/user}","branches_url":"https://api.github.com/repos/freedomofpress/securedrop/branches{/branch}","tags_url":"https://api.github.com/repos/freedomofpress/securedrop/tags","blobs_url":"https://api.github.com/repos/freedomofpress/securedrop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freedomofpress/securedrop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freedomofpress/securedrop/git/refs{/sha}","trees_url":"https://api.github.com/repos/freedomofpress/securedrop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freedomofpress/securedrop/statuses/{sha}","languages_url":"https://api.github.com/repos/freedomofpress/securedrop/languages","stargazers_url":"https://api.github.com/repos/freedomofpress/securedrop/stargazers","contributors_url":"https://api.github.com/repos/freedomofpress/securedrop/contributors","subscribers_url":"https://api.github.com/repos/freedomofpress/securedrop/subscribers","subscription_url":"https://api.github.com/repos/freedomofpress/securedrop/subscription","commits_url":"https://api.github.com/repos/freedomofpress/securedrop/commits{/sha}","git_commits_url":"https://api.github.com/repos/freedomofpress/securedrop/git/commits{/sha}","comments_url":"https://api.github.com/repos/freedomofpress/securedrop/comments{/number}","issue_comment_url":"https://api.github.com/repos/freedomofpress/securedrop/issues/comments{/number}","contents_url":"https://api.github.com/repos/freedomofpress/securedrop/contents/{+path}","compare_url":"https://api.github.com/repos/freedomofpress/securedrop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freedomofpress/securedrop/merges","archive_url":"https://api.github.com/repos/freedomofpress/securedrop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freedomofpress/securedrop/downloads","issues_url":"https://api.github.com/repos/freedomofpress/securedrop/issues{/number}","pulls_url":"https://api.github.com/repos/freedomofpress/securedrop/pulls{/number}","milestones_url":"https://api.github.com/repos/freedomofpress/securedrop/milestones{/number}","notifications_url":"https://api.github.com/repos/freedomofpress/securedrop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freedomofpress/securedrop/labels{/name}","releases_url":"https://api.github.com/repos/freedomofpress/securedrop/releases{/id}","created_at":"2012-01-11T19:57:55Z","updated_at":"2015-03-31T00:49:43Z","pushed_at":"2015-03-31T08:45:05Z","git_url":"git://github.com/freedomofpress/securedrop.git","ssh_url":"git@github.com:freedomofpress/securedrop.git","clone_url":"https://github.com/freedomofpress/securedrop.git","svn_url":"https://github.com/freedomofpress/securedrop","homepage":"https://freedom.press/securedrop","size":39031,"stargazers_count":1416,"watchers_count":1416,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":133,"forks":231,"open_issues":133,"watchers":1416,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955"},"html":{"href":"https://github.com/freedomofpress/securedrop/pull/955"},"issue":{"href":"https://api.github.com/repos/freedomofpress/securedrop/issues/955"},"comments":{"href":"https://api.github.com/repos/freedomofpress/securedrop/issues/955/comments"},"review_comments":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955/comments"},"review_comment":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freedomofpress/securedrop/pulls/955/commits"},"statuses":{"href":"https://api.github.com/repos/freedomofpress/securedrop/statuses/27b29ae139399965ece6752c3a3dc2184bed2c84"}}}}