From 39ac5b088b1d822364fc33439ed98b81dabb43a5 Mon Sep 17 00:00:00 2001 From: sadnub Date: Tue, 23 Mar 2021 08:56:43 -0400 Subject: [PATCH] Update entrypoint.sh --- docker/containers/tactical/entrypoint.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docker/containers/tactical/entrypoint.sh b/docker/containers/tactical/entrypoint.sh index 4e1cf9ba..66fa6c3b 100644 --- a/docker/containers/tactical/entrypoint.sh +++ b/docker/containers/tactical/entrypoint.sh @@ -35,11 +35,7 @@ if [ "$1" = 'tactical-init' ]; then test -f "${TACTICAL_READY_FILE}" && rm "${TACTICAL_READY_FILE}" # copy container data to volume - # bad - #cp -af ${TACTICAL_TMP_DIR}/. ${TACTICAL_DIR}/ - - # good - rsync -a --no-perms --no-owner --delete "${TACTICAL_TMP_DIR}/" "${TACTICAL_DIR}/" + rsync -a --no-perms --no-owner --delete --exclude "tmp/*" --exclude "certs/*" "${TACTICAL_TMP_DIR}/" "${TACTICAL_DIR}/" until (echo > /dev/tcp/"${POSTGRES_HOST}"/"${POSTGRES_PORT}") &> /dev/null; do echo "waiting for postgresql container to be ready..."