]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
cleanup: also move .pem-revoked files (fixes #237)
authorLukas Schauer <lukas@schauer.so>
Mon, 10 Jul 2017 18:27:42 +0000 (20:27 +0200)
committerLukas Schauer <lukas@schauer.so>
Mon, 10 Jul 2017 18:27:42 +0000 (20:27 +0200)
dehydrated

index d7581cfb74dcd0328b30f136aef0fa66d405fcbc..70c52d17483dafb7b18d9ba0b2e349dc0016046a 100755 (executable)
@@ -1136,7 +1136,7 @@ command_cleanup() {
       fileext="$(echo "${filetype}" | cut -d. -f2)"
 
       # Loop over all files of this type
-      for file in "${certdir}/${filebase}-"*".${fileext}"; do
+      for file in "${certdir}/${filebase}-"*".${fileext}" "${certdir}/${filebase}-"*".${fileext}-revoked"; do
         # Handle case where no files match the wildcard
         [[ -f "${file}" ]] || break