Skip to content

Commit 5572c97

Browse files
authored
create /data/database/postgres/ if missing (#273)
fix for issue #271
1 parent cffbd7b commit 5572c97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ fi
4242

4343
if [ "$1" == "import" ]; then
4444
# Ensure that database directory is in right state
45+
mkdir -p /data/database/postgres/
46+
chown renderer: /data/database/
4547
chown -R postgres: /var/lib/postgresql /data/database/postgres/
4648
if [ ! -f /data/database/postgres/PG_VERSION ]; then
4749
sudo -u postgres /usr/lib/postgresql/14/bin/pg_ctl -D /data/database/postgres/ initdb -o "--locale C.UTF-8"

0 commit comments

Comments
 (0)