From b93f655039f74c61c114c48d9a6f9a804d387755 Mon Sep 17 00:00:00 2001 From: amo13 Date: Sat, 30 Dec 2023 20:25:34 +0100 Subject: [PATCH] Create parent dirs of data/media/consume if necessary (#5176) * Create parent dirs of data/media/consume if necessary * long --parents instead of short -p --- docker/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 58e46bd01..37f9d7288 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -86,13 +86,13 @@ initialize() { "${CONSUME_DIR}"; do if [[ ! -d "${dir}" ]]; then echo "Creating directory ${dir}" - mkdir "${dir}" + mkdir --parents "${dir}" fi done local -r tmp_dir="/tmp/paperless" echo "Creating directory ${tmp_dir}" - mkdir -p "${tmp_dir}" + mkdir --parents "${tmp_dir}" set +e echo "Adjusting permissions of paperless files. This may take a while."