do not fail if importing for existing datbase
This commit is contained in:
parent
9c18f030ca
commit
afd6778ca6
7
run.sh
7
run.sh
@ -40,7 +40,12 @@ if [ ! -f /data/style/mapnik.xml ]; then
|
||||
carto ${NAME_MML:-project.mml} > mapnik.xml
|
||||
fi
|
||||
|
||||
if [ "$1" == "import" ] && [ ! -f /var/lib/postgresql/14/main/.databaseImported ]; 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
|
||||
mkdir -p /data/database/postgres/
|
||||
chown renderer: /data/database/
|
||||
|
Loading…
Reference in New Issue
Block a user