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