add config file to init container

This commit is contained in:
red 2025-04-09 12:04:28 -04:00
parent 69e2a3eb0e
commit 3b3f862a9c
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +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}