Update entrypoint.sh

This commit is contained in:
sadnub 2021-03-23 08:56:43 -04:00
parent a297dc8b3b
commit 39ac5b088b
1 changed files with 1 additions and 5 deletions

View File

@ -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..."