{"action":"created","issue":{"url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/80","labels_url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/80/comments","events_url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/80/events","html_url":"https://github.com/lukas2511/letsencrypt.sh/pull/80","id":125733379,"number":80,"title":"Add cleanup command to delete old files","user":{"login":"code28","id":7918047,"avatar_url":"https://avatars.githubusercontent.com/u/7918047?v=3","gravatar_id":"","url":"https://api.github.com/users/code28","html_url":"https://github.com/code28","followers_url":"https://api.github.com/users/code28/followers","following_url":"https://api.github.com/users/code28/following{/other_user}","gists_url":"https://api.github.com/users/code28/gists{/gist_id}","starred_url":"https://api.github.com/users/code28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code28/subscriptions","organizations_url":"https://api.github.com/users/code28/orgs","repos_url":"https://api.github.com/users/code28/repos","events_url":"https://api.github.com/users/code28/events{/privacy}","received_events_url":"https://api.github.com/users/code28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-09T03:06:52Z","updated_at":"2016-01-15T22:45:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/pulls/80","html_url":"https://github.com/lukas2511/letsencrypt.sh/pull/80","diff_url":"https://github.com/lukas2511/letsencrypt.sh/pull/80.diff","patch_url":"https://github.com/lukas2511/letsencrypt.sh/pull/80.patch"},"body":"Since the script keeps all the old certificates as a backup, the folders can get messy after a while. So I thought, a cleanup command would be useful. When there are a lot of different domains, there would be a lot of files to delete manually, so this command helps by checking, which certificates are used and deletes the other ones.\r\n\r\nI was thinking about how to implement it, and I think an automated or implicit cleanup would be against the thought of having backups in case of trouble. So I came up with this extra command, so the cleanup can be started explicitly, when the certificates are working fine.\r\n\r\nI was thinking about only deleting expired certificates, but first I wanted to start with this idea, so we can discuss on this basis."},"comment":{"url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/comments/172116823","html_url":"https://github.com/lukas2511/letsencrypt.sh/pull/80#issuecomment-172116823","issue_url":"https://api.github.com/repos/lukas2511/letsencrypt.sh/issues/80","id":172116823,"user":{"login":"code28","id":7918047,"avatar_url":"https://avatars.githubusercontent.com/u/7918047?v=3","gravatar_id":"","url":"https://api.github.com/users/code28","html_url":"https://github.com/code28","followers_url":"https://api.github.com/users/code28/followers","following_url":"https://api.github.com/users/code28/following{/other_user}","gists_url":"https://api.github.com/users/code28/gists{/gist_id}","starred_url":"https://api.github.com/users/code28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code28/subscriptions","organizations_url":"https://api.github.com/users/code28/orgs","repos_url":"https://api.github.com/users/code28/repos","events_url":"https://api.github.com/users/code28/events{/privacy}","received_events_url":"https://api.github.com/users/code28/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T22:45:09Z","updated_at":"2016-01-15T22:45:09Z","body":"Yes, I was thinking about it too, to only delete expired certificates. This can be added quite easily with OpenSSL's `checkend` command. That's probably safer.\r\nThe list thing was an quick and easy way of verifying, that the files aren't linked anymore, so no linked files are touched."}}