parent
cffbd7be5b
commit
5572c9722e
2
run.sh
2
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"
|
||||
|
Loading…
Reference in New Issue
Block a user