4 # Create 'openstreetmap' user
5 # Password and superuser privilege are needed to successfully run test suite
6 psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" <<-EOSQL
7 CREATE USER openstreetmap SUPERUSER PASSWORD 'openstreetmap';
8 GRANT ALL PRIVILEGES ON DATABASE openstreetmap TO openstreetmap;
11 # Define custom functions
12 psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -f "/usr/local/share/osm-db-functions.sql" openstreetmap