From bb04ba528cf42765069d77e8cedaf69d2f5eb0dd Mon Sep 17 00:00:00 2001 From: sadnub Date: Wed, 7 Apr 2021 19:38:09 -0400 Subject: [PATCH] make sure logs dir exists for api --- docker/containers/tactical/entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/containers/tactical/entrypoint.sh b/docker/containers/tactical/entrypoint.sh index 1f980963..8a09d5c5 100644 --- a/docker/containers/tactical/entrypoint.sh +++ b/docker/containers/tactical/entrypoint.sh @@ -29,15 +29,15 @@ function check_tactical_ready { # tactical-init if [ "$1" = 'tactical-init' ]; then - mkdir -p ${TACTICAL_DIR}/tmp - mkdir -p ${TACTICAL_DIR}/scripts/userdefined - mkdir -p ${TACTICAL_DIR}/api/tacticalrmm/private/exe - test -f "${TACTICAL_READY_FILE}" && rm "${TACTICAL_READY_FILE}" # copy container data to volume rsync -a --no-perms --no-owner --delete --exclude "tmp/*" --exclude "certs/*" --exclude="api/tacticalrmm/private/*" "${TACTICAL_TMP_DIR}/" "${TACTICAL_DIR}/" + mkdir -p ${TACTICAL_DIR}/tmp + mkdir -p ${TACTICAL_DIR}/api/tacticalrmm/private/exe + mkdir -p ${TACTICAL_DIR}/api/tacticalrmm/logs + until (echo > /dev/tcp/"${POSTGRES_HOST}"/"${POSTGRES_PORT}") &> /dev/null; do echo "waiting for postgresql container to be ready..." sleep 5