diff options
-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}" ] |