-
-
Save SEJeff/91e2ec11ae4c896d665d to your computer and use it in GitHub Desktop.
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
su - postgres | |
createdb -E UTF8 template_postgis | |
createlang -d template_postgis plpgsql | |
PGSHARE=`pg_config --sharedir` | |
PGSQL=`find $PGSHARE -name postgis.sql -o -name postgis-64.sql | tail -n 1` | |
PGSQLSP=`find $PGSHARE -name spatial_ref_sys.sql | tail -n 1` | |
psql -d template_postgis -f $PGSQL | |
psql -d template_postgis -f $PGSQLSP | |
psql -d template_postgis -c 'grant all on geometry_columns to public;' | |
psql -d template_postgis -c 'grant all on spatial_ref_sys to public;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment