mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
[PR #667] [CLOSED] cleanup: also do cleanup if symlink is broken #890
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/667
Author: @arnout
Created: 8/30/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
2e00c8ecleanup: also do cleanup if symlink is broken📊 Changes
1 file changed (+7 additions, -5 deletions)
View changed files
📝
dehydrated(+7 -5)📄 Description
The cleanup command skips filetypes for which the symlink is broken or
doesn't exist. However, if dehydrated fails, we may end up in exactly
the situation that the symlink doesn't exist (yet). If dehydrated fails
repeatedly, we may end up with a lot of old cert.csr, cert.pem and
privkey.pem files, so we really want to be able to clean them up.
Remove all files if the symlink is broken/missing, instead of skipping
those files.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) arnout@mind.be
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.