diff --git a/run.sh b/run.sh index 5552c51..1328dc3 100755 --- a/run.sh +++ b/run.sh @@ -42,6 +42,8 @@ fi if [ "$1" == "import" ]; then # Ensure that database directory is in right state + mkdir -p /data/database/postgres/ + chown renderer: /data/database/ chown -R postgres: /var/lib/postgresql /data/database/postgres/ if [ ! -f /data/database/postgres/PG_VERSION ]; then sudo -u postgres /usr/lib/postgresql/14/bin/pg_ctl -D /data/database/postgres/ initdb -o "--locale C.UTF-8"