diff --git a/pleroma/init-pleroma.sh b/pleroma/init-pleroma.sh index 2790bba..b4208ea 100644 --- a/pleroma/init-pleroma.sh +++ b/pleroma/init-pleroma.sh @@ -1,6 +1,9 @@ #!/bin/sh set -e +# uncomment to debug +# env + while ! pg_isready -U ${DB_USER} -d postgres://${DB_HOST}:${DB_PORT}/${DB_NAME} -t 1; do sleep 1s; done; mkdir -p ${DATA}/uploads && mkdir -p ${DATA}/static && cp -rf /static-files/* ${DATA}/static && chown -R 1000:1000 ${DATA}