From 490c38473d1b6c4535308b05dd8184885f482af0 Mon Sep 17 00:00:00 2001 From: red Date: Wed, 9 Apr 2025 11:45:50 -0400 Subject: [PATCH] something is fuggy --- pleroma/init-pleroma.sh | 2 ++ 1 file changed, 2 insertions(+) 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