This commit is contained in:
Alex 2023-03-18 22:26:31 +01:00 committed by GitHub
commit efe6ec8d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
run.sh
View File

@ -41,6 +41,11 @@ if [ ! -f /data/style/mapnik.xml ]; then
fi fi
if [ "$1" == "import" ]; then if [ "$1" == "import" ]; then
if [ -f /var/lib/postgresql/14/main/.databaseImported ]; then
echo "database already initialized"
exit 0
fi
# Ensure that database directory is in right state # Ensure that database directory is in right state
mkdir -p /data/database/postgres/ mkdir -p /data/database/postgres/
chown renderer: /data/database/ chown renderer: /data/database/
@ -126,6 +131,8 @@ if [ "$1" == "import" ]; then
service postgresql stop service postgresql stop
touch /var/lib/postgresql/14/main/.databaseImported
exit 0 exit 0
fi fi