Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (6 sloc) 199 Bytes
#!/bin/sh
DBNAME=afg
DBUSER=afg
sudo su postgres -c "dropdb $DBNAME"
sudo su postgres -c "createdb -T template_postgis -O $DBUSER $DBNAME"
sudo su postgres -c "psql $DBNAME $DBUSER < data/afg.sql"