Skip to content

Commit

Permalink
Upgrade to PostgreSQL 9.4 and PostGIS 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kalxas committed Dec 15, 2015
1 parent 699059f commit 2a71acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/install_postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ USER_HOME="/home/$USER_NAME"

# Not to be confused with PGIS_Version, this has one less number and period
# to correspond to install paths
PG_VERSION="9.3"
PG_VERSION="9.4"

#debug:
echo "#DEBUG The locale settings are currently:"
Expand All @@ -45,7 +45,7 @@ locale
echo "------------------------------------"

##-- TODO pgdg repo ?
apt-get install --yes postgis "postgresql-$PG_VERSION-postgis-2.1"
apt-get install --yes postgis "postgresql-$PG_VERSION-postgis-2.2"
#TODO: Restore postgis-gui in the future.

if [ $? -ne 0 ] ; then
Expand Down
8 changes: 4 additions & 4 deletions bin/load_postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ sudo -u $POSTGRES_USER psql osm_local -c 'create extension postgis;'

# Kosmo, gpsdrive, please update your API calls ....
cp "$BUILD_DIR"/../app-conf/postgis/legacy*.sql \
/usr/share/postgresql/9.3/contrib/postgis-2.1/
/usr/share/postgresql/9.4/contrib/postgis-2.2/

sed -i -e 's/postgis-2.0/postgis-2.1/' \
/usr/share/postgresql/9.3/contrib/postgis-2.1/legacy*.sql
sed -i -e 's/postgis-2.0/postgis-2.2/' \
/usr/share/postgresql/9.4/contrib/postgis-2.2/legacy*.sql

sudo -u $POSTGRES_USER psql osm_local \
-f /usr/share/postgresql/9.3/contrib/postgis-2.1/legacy_minimal.sql
-f /usr/share/postgresql/9.4/contrib/postgis-2.2/legacy_minimal.sql

#sudo -u $POSTGRES_USER createdb osm_local_smerc
#sudo -u $POSTGRES_USER psql osm_local_smerc -c 'create extension postgis;'
Expand Down

0 comments on commit 2a71acd

Please sign in to comment.