mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-30 18:40:42 +02:00
cleanup: also remove dangling symlinks
This commit is contained in:
@@ -1884,6 +1884,10 @@ command_cleanup() {
|
|||||||
# Look up current file in use
|
# Look up current file in use
|
||||||
current="$(basename "$(readlink "${certdir}/${filetype}")")"
|
current="$(basename "$(readlink "${certdir}/${filetype}")")"
|
||||||
else
|
else
|
||||||
|
if [[ -h "${certdir}/${filetype}" ]]; then
|
||||||
|
echo "Removing broken symlink: ${certdir}/${filetype}"
|
||||||
|
rm -f "${certdir}/${filetype}"
|
||||||
|
fi
|
||||||
current=""
|
current=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user