{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/59","repository_url":"https://api.github.com/repos/dokku/dokku-letsencrypt","labels_url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/59/comments","events_url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/59/events","html_url":"https://github.com/dokku/dokku-letsencrypt/pull/59","id":155228100,"number":59,"title":"Added cron-job command","user":{"login":"256dpi","id":696886,"avatar_url":"https://avatars.githubusercontent.com/u/696886?v=3","gravatar_id":"","url":"https://api.github.com/users/256dpi","html_url":"https://github.com/256dpi","followers_url":"https://api.github.com/users/256dpi/followers","following_url":"https://api.github.com/users/256dpi/following{/other_user}","gists_url":"https://api.github.com/users/256dpi/gists{/gist_id}","starred_url":"https://api.github.com/users/256dpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/256dpi/subscriptions","organizations_url":"https://api.github.com/users/256dpi/orgs","repos_url":"https://api.github.com/users/256dpi/repos","events_url":"https://api.github.com/users/256dpi/events{/privacy}","received_events_url":"https://api.github.com/users/256dpi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-17T10:37:41Z","updated_at":"2016-05-17T12:51:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dokku/dokku-letsencrypt/pulls/59","html_url":"https://github.com/dokku/dokku-letsencrypt/pull/59","diff_url":"https://github.com/dokku/dokku-letsencrypt/pull/59.diff","patch_url":"https://github.com/dokku/dokku-letsencrypt/pull/59.patch"},"body":"Implements #57.\r\n\r\nDokku runs all commands as the dokku user, that way we would have to use sudo to link the cron entry. As on my system and others the dokku user has no sudo rights, the `dokku letsencrypt:cron-job` command just prints instructions for adding or removing the symlink."},"comment":{"url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/comments/219707758","html_url":"https://github.com/dokku/dokku-letsencrypt/pull/59#issuecomment-219707758","issue_url":"https://api.github.com/repos/dokku/dokku-letsencrypt/issues/59","id":219707758,"user":{"login":"sseemayer","id":736556,"avatar_url":"https://avatars.githubusercontent.com/u/736556?v=3","gravatar_id":"","url":"https://api.github.com/users/sseemayer","html_url":"https://github.com/sseemayer","followers_url":"https://api.github.com/users/sseemayer/followers","following_url":"https://api.github.com/users/sseemayer/following{/other_user}","gists_url":"https://api.github.com/users/sseemayer/gists{/gist_id}","starred_url":"https://api.github.com/users/sseemayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sseemayer/subscriptions","organizations_url":"https://api.github.com/users/sseemayer/orgs","repos_url":"https://api.github.com/users/sseemayer/repos","events_url":"https://api.github.com/users/sseemayer/events{/privacy}","received_events_url":"https://api.github.com/users/sseemayer/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T12:51:32Z","updated_at":"2016-05-17T12:51:32Z","body":"Instead of giving instructions for adding something to `cron.daily`, we could modify the dokku user's crontab without any necessary extra permissions:\r\n\r\n1. Run `crontab -l` as the dokku user to get the current crontab\r\n2. Modify the current crontab to include the necessary entries\r\n3. Pipe the result into `crontab`"}}