This commit is contained in:
Alex authored and GitHub committed 2023-06-25 08:15:11 -05:00
commit ec28754104
1 file changed
+7
+7
View File
@@ -41,6 +41,11 @@ if [ ! -f /data/style/mapnik.xml ]; then
fi
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/
@@ -126,6 +131,8 @@ if [ "$1" == "import" ]; then
service postgresql stop
touch /var/lib/postgresql/14/main/.databaseImported
exit 0
fi