{"action":"created","comment":{"url":"https://api.github.com/repos/gogits/gogs/pulls/comments/41085766","id":41085766,"diff_hunk":"@@ -12,17 +11,16 @@ if ! test -d ~git/.ssh; then\n fi\n \n if ! test -f ~git/.ssh/environment; then\n-    echo \"GOGS_CUSTOM=/data/gogs\" > ~git/.ssh/environment\n-    chown git:git ~git/.ssh/environment\n-    chown 600 ~git/.ssh/environment\n+    echo \"GOGS_CUSTOM=${GOGS_CUSTOM}\" > ~git/.ssh/environment\n+    chmod 600 ~git/.ssh/environment\n fi\n \n-ln -sf /data/gogs/log  /app/gogs/log\n-ln -sf /data/gogs/data /app/gogs/data\n-ln -sf /data/gogs/conf /app/gogs/conf\n+cd /app/gogs\n+\n+ln -sf /data/gogs/log  ./log\n+ln -sf /data/gogs/data ./data\n \n chown -R git:git /data /app/gogs ~git/\n \n export USER\n-export USERNAME","path":"docker/s6/gogs/run","position":29,"original_position":29,"commit_id":"3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8","original_commit_id":"3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8","user":{"login":"ogarcia","id":572924,"avatar_url":"https://avatars.githubusercontent.com/u/572924?v=3","gravatar_id":"","url":"https://api.github.com/users/ogarcia","html_url":"https://github.com/ogarcia","followers_url":"https://api.github.com/users/ogarcia/followers","following_url":"https://api.github.com/users/ogarcia/following{/other_user}","gists_url":"https://api.github.com/users/ogarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/ogarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogarcia/subscriptions","organizations_url":"https://api.github.com/users/ogarcia/orgs","repos_url":"https://api.github.com/users/ogarcia/repos","events_url":"https://api.github.com/users/ogarcia/events{/privacy}","received_events_url":"https://api.github.com/users/ogarcia/received_events","type":"User","site_admin":false},"body":"@0rax I tested it in new install and running install and works perfect only with `USER`. As @Unknwon say, the `func CurrentUsername()` do the magic.","created_at":"2015-10-03T10:27:06Z","updated_at":"2015-10-03T10:27:06Z","html_url":"https://github.com/gogits/gogs/pull/1731#discussion_r41085766","pull_request_url":"https://api.github.com/repos/gogits/gogs/pulls/1731","_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments/41085766"},"html":{"href":"https://github.com/gogits/gogs/pull/1731#discussion_r41085766"},"pull_request":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1731"}}},"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/1731","id":46672311,"html_url":"https://github.com/gogits/gogs/pull/1731","diff_url":"https://github.com/gogits/gogs/pull/1731.diff","patch_url":"https://github.com/gogits/gogs/pull/1731.patch","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1731","number":1731,"state":"closed","locked":false,"title":"Several bugfixes in Docker build","user":{"login":"ogarcia","id":572924,"avatar_url":"https://avatars.githubusercontent.com/u/572924?v=3","gravatar_id":"","url":"https://api.github.com/users/ogarcia","html_url":"https://github.com/ogarcia","followers_url":"https://api.github.com/users/ogarcia/followers","following_url":"https://api.github.com/users/ogarcia/following{/other_user}","gists_url":"https://api.github.com/users/ogarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/ogarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogarcia/subscriptions","organizations_url":"https://api.github.com/users/ogarcia/orgs","repos_url":"https://api.github.com/users/ogarcia/repos","events_url":"https://api.github.com/users/ogarcia/events{/privacy}","received_events_url":"https://api.github.com/users/ogarcia/received_events","type":"User","site_admin":false},"body":"- Removed unnecessary variables\r\n- Fixed symbolic links creation\r\n- Fixed enter point\r\n- Less intermediate containers","created_at":"2015-10-02T19:24:34Z","updated_at":"2015-10-03T10:27:06Z","closed_at":"2015-10-02T19:59:10Z","merged_at":"2015-10-02T19:59:10Z","merge_commit_sha":"1c0e9fe47f6fb0aa38a54c49e642f8061bc2e285","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gogits/gogs/pulls/1731/commits","review_comments_url":"https://api.github.com/repos/gogits/gogs/pulls/1731/comments","review_comment_url":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1731/comments","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8","head":{"label":"ogarcia:develop","ref":"develop","sha":"3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8","user":{"login":"ogarcia","id":572924,"avatar_url":"https://avatars.githubusercontent.com/u/572924?v=3","gravatar_id":"","url":"https://api.github.com/users/ogarcia","html_url":"https://github.com/ogarcia","followers_url":"https://api.github.com/users/ogarcia/followers","following_url":"https://api.github.com/users/ogarcia/following{/other_user}","gists_url":"https://api.github.com/users/ogarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/ogarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogarcia/subscriptions","organizations_url":"https://api.github.com/users/ogarcia/orgs","repos_url":"https://api.github.com/users/ogarcia/repos","events_url":"https://api.github.com/users/ogarcia/events{/privacy}","received_events_url":"https://api.github.com/users/ogarcia/received_events","type":"User","site_admin":false},"repo":{"id":43388357,"name":"gogs","full_name":"ogarcia/gogs","owner":{"login":"ogarcia","id":572924,"avatar_url":"https://avatars.githubusercontent.com/u/572924?v=3","gravatar_id":"","url":"https://api.github.com/users/ogarcia","html_url":"https://github.com/ogarcia","followers_url":"https://api.github.com/users/ogarcia/followers","following_url":"https://api.github.com/users/ogarcia/following{/other_user}","gists_url":"https://api.github.com/users/ogarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/ogarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogarcia/subscriptions","organizations_url":"https://api.github.com/users/ogarcia/orgs","repos_url":"https://api.github.com/users/ogarcia/repos","events_url":"https://api.github.com/users/ogarcia/events{/privacy}","received_events_url":"https://api.github.com/users/ogarcia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ogarcia/gogs","description":"Gogs(Go Git Service) is a painless self-hosted Git Service.","fork":true,"url":"https://api.github.com/repos/ogarcia/gogs","forks_url":"https://api.github.com/repos/ogarcia/gogs/forks","keys_url":"https://api.github.com/repos/ogarcia/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogarcia/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogarcia/gogs/teams","hooks_url":"https://api.github.com/repos/ogarcia/gogs/hooks","issue_events_url":"https://api.github.com/repos/ogarcia/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/ogarcia/gogs/events","assignees_url":"https://api.github.com/repos/ogarcia/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/ogarcia/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/ogarcia/gogs/tags","blobs_url":"https://api.github.com/repos/ogarcia/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogarcia/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogarcia/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogarcia/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogarcia/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/ogarcia/gogs/languages","stargazers_url":"https://api.github.com/repos/ogarcia/gogs/stargazers","contributors_url":"https://api.github.com/repos/ogarcia/gogs/contributors","subscribers_url":"https://api.github.com/repos/ogarcia/gogs/subscribers","subscription_url":"https://api.github.com/repos/ogarcia/gogs/subscription","commits_url":"https://api.github.com/repos/ogarcia/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogarcia/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogarcia/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogarcia/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ogarcia/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/ogarcia/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogarcia/gogs/merges","archive_url":"https://api.github.com/repos/ogarcia/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogarcia/gogs/downloads","issues_url":"https://api.github.com/repos/ogarcia/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/ogarcia/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/ogarcia/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/ogarcia/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogarcia/gogs/labels{/name}","releases_url":"https://api.github.com/repos/ogarcia/gogs/releases{/id}","created_at":"2015-09-29T19:04:25Z","updated_at":"2015-09-29T19:04:30Z","pushed_at":"2015-10-02T19:22:05Z","git_url":"git://github.com/ogarcia/gogs.git","ssh_url":"git@github.com:ogarcia/gogs.git","clone_url":"https://github.com/ogarcia/gogs.git","svn_url":"https://github.com/ogarcia/gogs","homepage":"http://gogs.io","size":26635,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gogits:develop","ref":"develop","sha":"655b69cb1f7804462f9ce50314446d00bebbf345","user":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"name":"gogs","full_name":"gogits/gogs","owner":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogits/gogs","description":"Gogs(Go Git Service) is a painless self-hosted Git Service.","fork":false,"url":"https://api.github.com/repos/gogits/gogs","forks_url":"https://api.github.com/repos/gogits/gogs/forks","keys_url":"https://api.github.com/repos/gogits/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogits/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogits/gogs/teams","hooks_url":"https://api.github.com/repos/gogits/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogits/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogits/gogs/events","assignees_url":"https://api.github.com/repos/gogits/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogits/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogits/gogs/tags","blobs_url":"https://api.github.com/repos/gogits/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogits/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogits/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogits/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogits/gogs/languages","stargazers_url":"https://api.github.com/repos/gogits/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogits/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogits/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogits/gogs/subscription","commits_url":"https://api.github.com/repos/gogits/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogits/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogits/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogits/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogits/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogits/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogits/gogs/merges","archive_url":"https://api.github.com/repos/gogits/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogits/gogs/downloads","issues_url":"https://api.github.com/repos/gogits/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogits/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogits/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogits/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogits/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogits/gogs/releases{/id}","created_at":"2014-02-12T01:57:08Z","updated_at":"2015-10-03T09:47:53Z","pushed_at":"2015-10-03T00:02:47Z","git_url":"git://github.com/gogits/gogs.git","ssh_url":"git@github.com:gogits/gogs.git","clone_url":"https://github.com/gogits/gogs.git","svn_url":"https://github.com/gogits/gogs","homepage":"http://gogs.io","size":37874,"stargazers_count":8708,"watchers_count":8708,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":795,"mirror_url":null,"open_issues_count":279,"forks":795,"open_issues":279,"watchers":8708,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1731"},"html":{"href":"https://github.com/gogits/gogs/pull/1731"},"issue":{"href":"https://api.github.com/repos/gogits/gogs/issues/1731"},"comments":{"href":"https://api.github.com/repos/gogits/gogs/issues/1731/comments"},"review_comments":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1731/comments"},"review_comment":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1731/commits"},"statuses":{"href":"https://api.github.com/repos/gogits/gogs/statuses/3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8"}}}}