]> git.ipfire.org Git - thirdparty/dehydrated.git/commit
cleanup: also do cleanup if symlink is broken (closes #667)
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 30 Aug 2019 15:02:56 +0000 (17:02 +0200)
committerLukas Schauer <lukas@schauer.so>
Thu, 10 Dec 2020 13:14:35 +0000 (14:14 +0100)
commit129ec851edb550d323ff6f4cc23e8312cb43b66b
tree9b241dd325a4e9d48e92400b56acf69b95335d3f
parent835963fa6e13ff9a17da3bc1517a3bb827d17ab7
cleanup: also do cleanup if symlink is broken (closes #667)

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>
dehydrated