diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-26 14:44:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-26 14:45:24 +0000 |
commit | ec3f9771d80a0f8091fca3c5e4bb81c55f56df06 (patch) | |
tree | c2623af26b1b015c0bc397458e98f9273fc833ca | |
parent | Releasing debian version 20210926-1. (diff) | |
download | open-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-x | debian/open-infrastructure-dehydrated-tools.postinst | 2 |
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}" ] |