We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5300472 commit 5a1b2a6Copy full SHA for 5a1b2a6
run.sh
@@ -24,6 +24,12 @@ if [ "$#" -ne 1 ]; then
24
fi
25
26
if [ "$1" = "import" ]; then
27
+ # Ensure that database directory is in right state
28
+ chown postgres:postgres -R /var/lib/postgresql
29
+ if [ ! -f /var/lib/postgresql/12/main/PG_VERSION ]; then
30
+ sudo -u postgres /usr/lib/postgresql/12/bin/pg_ctl -D /var/lib/postgresql/12/main/ initdb -o "--locale C.UTF-8"
31
+ fi
32
+
33
# Initialize PostgreSQL
34
createPostgresConfig
35
service postgresql start
0 commit comments