diff --git a/pleroma/init-pleroma.sh b/pleroma/init-pleroma.sh index 1ecae95..7ca8b36 100644 --- a/pleroma/init-pleroma.sh +++ b/pleroma/init-pleroma.sh @@ -1,4 +1,6 @@ #!/bin/sh +set -e +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} exec "${HOME}/bin/pleroma_ctl migrate" \ No newline at end of file