From ec3f9771d80a0f8091fca3c5e4bb81c55f56df06 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 26 Sep 2021 16:44:41 +0200 Subject: Handling empty acme-challenges directory. Signed-off-by: Daniel Baumann --- debian/open-infrastructure-dehydrated-tools.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/open-infrastructure-dehydrated-tools.postinst b/debian/open-infrastructure-dehydrated-tools.postinst index 68b67f7..43f9bf9 100755 --- a/debian/open-infrastructure-dehydrated-tools.postinst +++ b/debian/open-infrastructure-dehydrated-tools.postinst @@ -228,7 +228,9 @@ EOF if [ -n "${NEW_BASEDIR}" ] && [ "${BASEDIR}" != "${NEW_BASEDIR}" ] then + rmdir "${BASEDIR}/acme-challenges" > /dev/null 2>&1 || true Install "${BASEDIR}" "${NEW_BASEDIR}" + mkdir -p "${BASEDIR}/acme-challenges" fi if [ -n "${DOMAINS}" ] -- cgit v1.2.3