{"action":"created","issue":{"url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/222","labels_url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/222/comments","events_url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/222/events","html_url":"https://github.com/andres-montanez/Magallanes/issues/222","id":71571067,"number":222,"title":"Built-in release task fails on chown","user":{"login":"miraage","id":971735,"avatar_url":"https://avatars.githubusercontent.com/u/971735?v=3","gravatar_id":"","url":"https://api.github.com/users/miraage","html_url":"https://github.com/miraage","followers_url":"https://api.github.com/users/miraage/followers","following_url":"https://api.github.com/users/miraage/following{/other_user}","gists_url":"https://api.github.com/users/miraage/gists{/gist_id}","starred_url":"https://api.github.com/users/miraage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miraage/subscriptions","organizations_url":"https://api.github.com/users/miraage/orgs","repos_url":"https://api.github.com/users/miraage/repos","events_url":"https://api.github.com/users/miraage/events{/privacy}","received_events_url":"https://api.github.com/users/miraage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-28T12:10:05Z","updated_at":"2015-10-02T16:08:00Z","closed_at":null,"body":"`chown` command is only can be executed if you are `root` user.\r\nI want to deploy as `deploy` user, so task fails.\r\n\r\nHow do I figure out this problem?\r\n\r\nhttps://github.com/andres-montanez/Magallanes/blob/a0f49203338770d971f82f204129d025c72c4eaf/Mage/Task/BuiltIn/Deployment/ReleaseTask.php#L77\r\n\r\nShould look like\r\n\r\n```php\r\n            if ($resultFetch && $userGroup != '') {\r\n                $command = 'sudo chown -R ' . $userGroup . ' ' . $currentCopy\r\n                    . ' && '\r\n                    . 'sudo chown ' . $userGroup . ' ' . $releasesDirectory;\r\n                $result = $this->runCommandRemote($command);\r\n                if (!$result) {\r\n                    return $result;\r\n                }\r\n            }\r\n```\r\n\r\n(also 1 more occurence of `chown` in this task)"},"comment":{"url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/comments/145073016","html_url":"https://github.com/andres-montanez/Magallanes/issues/222#issuecomment-145073016","issue_url":"https://api.github.com/repos/andres-montanez/Magallanes/issues/222","id":145073016,"user":{"login":"drAlberT","id":1442700,"avatar_url":"https://avatars.githubusercontent.com/u/1442700?v=3","gravatar_id":"","url":"https://api.github.com/users/drAlberT","html_url":"https://github.com/drAlberT","followers_url":"https://api.github.com/users/drAlberT/followers","following_url":"https://api.github.com/users/drAlberT/following{/other_user}","gists_url":"https://api.github.com/users/drAlberT/gists{/gist_id}","starred_url":"https://api.github.com/users/drAlberT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drAlberT/subscriptions","organizations_url":"https://api.github.com/users/drAlberT/orgs","repos_url":"https://api.github.com/users/drAlberT/repos","events_url":"https://api.github.com/users/drAlberT/events{/privacy}","received_events_url":"https://api.github.com/users/drAlberT/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:08:00Z","updated_at":"2015-10-02T16:08:00Z","body":"@danakil see my fork .. it should allow it "}}