{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/329","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/329/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/329/events","html_url":"https://github.com/deployphp/deployer/issues/329","id":86945458,"number":329,"title":"Use sudo on cleanup","user":{"login":"leandrogehlen","id":1750751,"avatar_url":"https://avatars.githubusercontent.com/u/1750751?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrogehlen","html_url":"https://github.com/leandrogehlen","followers_url":"https://api.github.com/users/leandrogehlen/followers","following_url":"https://api.github.com/users/leandrogehlen/following{/other_user}","gists_url":"https://api.github.com/users/leandrogehlen/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrogehlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrogehlen/subscriptions","organizations_url":"https://api.github.com/users/leandrogehlen/orgs","repos_url":"https://api.github.com/users/leandrogehlen/repos","events_url":"https://api.github.com/users/leandrogehlen/events{/privacy}","received_events_url":"https://api.github.com/users/leandrogehlen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deployphp/deployer/labels/discuss","name":"discuss","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T12:03:59Z","updated_at":"2015-06-11T13:34:23Z","closed_at":null,"body":"When lost connection during deploy, and i repeat deploy routine then the following errors occurs:\r\n\r\n```sh\r\n rm: cannot remove /usr/share/nginx/html/yii2-comercial/releases/2015060410\r\n\r\n 0406/web/assets/7e1698fe/addon/fold/markdown-fold.js: Permission denied\r\n\r\n rm: cannot remove /usr/share/nginx/html/yii2-comercial/releases/2015060410\r\n\r\n 0406/web/assets/7e1698fe/addon/fold/brace-fold.js: Permission denied\r\n...\r\n```\r\n\r\ni think necessary to create the param `set('cleanup_use_sudo', true)`; \r\n\r\ni can make this PR."},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/111136981","html_url":"https://github.com/deployphp/deployer/issues/329#issuecomment-111136981","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/329","id":111136981,"user":{"login":"ZhukV","id":2256109,"avatar_url":"https://avatars.githubusercontent.com/u/2256109?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhukV","html_url":"https://github.com/ZhukV","followers_url":"https://api.github.com/users/ZhukV/followers","following_url":"https://api.github.com/users/ZhukV/following{/other_user}","gists_url":"https://api.github.com/users/ZhukV/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhukV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhukV/subscriptions","organizations_url":"https://api.github.com/users/ZhukV/orgs","repos_url":"https://api.github.com/users/ZhukV/repos","events_url":"https://api.github.com/users/ZhukV/events{/privacy}","received_events_url":"https://api.github.com/users/ZhukV/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T13:34:23Z","updated_at":"2015-06-11T13:34:23Z","body":"Use sudo for this operation is risky ;)\r\nYou should correct configure permissions on you server."}}