From 69051c05fb371fa1b92c498c31ad59e2e3da241b Mon Sep 17 00:00:00 2001 From: Jordan Webb Date: Mon, 1 Feb 2021 23:59:20 -0600 Subject: [PATCH] Move db polling after config generation --- run-pleroma.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run-pleroma.sh b/run-pleroma.sh index d89b451..f772448 100755 --- a/run-pleroma.sh +++ b/run-pleroma.sh @@ -2,15 +2,15 @@ set -euo pipefail +if [ ! -e "$PLEROMA_CONFIG_PATH" ] ; then + generate-pleroma-config.sh +fi + while ! pg_isready -U "${POSTGRES_USER:-pleroma}" -d "postgres://${POSTGRES_HOST:-postgres}:5432/${POSTGRES_DB:-pleroma}" -t 1; do echo "Waiting for ${POSTGRES_HOST-postgres} to come up..." >&2 sleep 1s done -if [ ! -e "$PLEROMA_CONFIG_PATH" ] ; then - generate-pleroma-config.sh -fi - pleroma_ctl migrate if [ "${USE_RUM:-n}" = "y" ] ; then