summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-28 10:35:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-28 10:35:07 +0000
commit23e45e3cdd0dc319be66b5510dede91680eb8aa5 (patch)
tree7a2c333d5b56c13a5e905d6d0dd3efce86191b9b
parentActually moving dehydrated directory if needed. (diff)
downloadopen-infrastructure-service-tools-23e45e3cdd0dc319be66b5510dede91680eb8aa5.tar.xz
open-infrastructure-service-tools-23e45e3cdd0dc319be66b5510dede91680eb8aa5.zip
Avoiding error when trying to creating directories ontop of symlinks when moving directories.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/open-infrastructure-dehydrated-tools.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.postinst b/debian/open-infrastructure-dehydrated-tools.postinst
index a02e661..e7e5ce5 100755
--- a/debian/open-infrastructure-dehydrated-tools.postinst
+++ b/debian/open-infrastructure-dehydrated-tools.postinst
@@ -38,8 +38,8 @@ Install ()
DEFAULT="${1}"
TARGET="${2}"
- mkdir -p "${DEFAULT}"
- mkdir -p "${TARGET}"
+ mkdir -p "${DEFAULT}" > /dev/null 2>&1 || true
+ mkdir -p "${TARGET}" > /dev/null 2>&1 || true
if [ "${TARGET}" != "${DEFAULT}" ]
then