summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-26 14:44:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-26 14:45:24 +0000
commitec3f9771d80a0f8091fca3c5e4bb81c55f56df06 (patch)
treec2623af26b1b015c0bc397458e98f9273fc833ca
parentReleasing debian version 20210926-1. (diff)
downloadopen-infrastructure-service-tools-ec3f9771d80a0f8091fca3c5e4bb81c55f56df06.tar.xz
open-infrastructure-service-tools-ec3f9771d80a0f8091fca3c5e4bb81c55f56df06.zip
Handling empty acme-challenges directory.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/open-infrastructure-dehydrated-tools.postinst2
1 files changed, 2 insertions, 0 deletions
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}" ]