Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
sudo apt-get -y install language-pack-es-base | |
sudo apt-get -y install postgresql-9.1 libpq-dev postgresql-9.1-postgis gdal-bin | |
sudo apt-get -y install git python-pip python-dev | |
sudo apt-get -y install libxml2-dev libxslt1-dev | |
sudo -u postgres psql -c "CREATE ROLE postgres LOGIN PASSWORD 'postgres' SUPERUSER VALID UNTIL 'infinity';" | |
sudo -u postgres createdb template_postgis | |
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql | |
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql |