2e00c8e cleanup: 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/dehydrated-io/dehydrated/pull/667
**Author:** [@arnout](https://github.com/arnout)
**Created:** 8/30/2019
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`2e00c8e`](https://github.com/dehydrated-io/dehydrated/commit/2e00c8ea4e4deb45b4501f7ff9dab73974d94ce7) cleanup: also do cleanup if symlink is broken
### 📊 Changes
**1 file changed** (+7 additions, -5 deletions)
<details>
<summary>View changed files</summary>
📝 `dehydrated` (+7 -5)
</details>
### 📄 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>
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.