Created
December 28, 2016 03:52
-
-
Save dooman87/334b45e1dd0ed0f1aa95c39e73de1f25 to your computer and use it in GitHub Desktop.
renderer/entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sh /scripts/compile_style.sh | |
while [ ! -e /var/lib/postgresql/data/DB_INITED ] | |
do | |
sleep 5 | |
echo "Waiting while database is initializing..." | |
done | |
#Have to wait because once DB created then osm2pgsql restarting postgres. | |
#TODO: Using pg_isready | |
echo "DB successfully created, waiting for restart" | |
sleep 60 | |
echo "Starting renderer" | |
sh /scripts/run_render.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment