#!/bin/bash
service postgresql start
/usr/sbin/apache2ctl start

## Set up nominatim updates ###

sudo -u nominatim ./src/build/utils/update.php --init-updates
sudo -u nominatim ./src/build/utils/update.php --import-osmosis-all &

## Follow log ###

tail -f /var/log/postgresql/postgresql-9.5-main.log
