InstallationGuidelines/Linux/Server/CherokeePostgreSQL: upgrade-postgis-2.sh

File upgrade-postgis-2.sh, 423 bytes (added by Fran Boon, 8 years ago)
Line 
1#!/bin/sh
2
3# Script to upgrade PostgreSQL & PostGIS on a default Debian Wheezy
4# - part 2 (run after reboot & test)
5
6# TEST
7pg_dropcluster 9.1 main
8apt-get remove -y postgresql-9.1 postgresql-client-9.1 postgresql-9.1-postgis postgis
9sudo aptitude purge `dpkg --get-selections | grep deinstall | awk '{print $1}'`
10apt-get remove postgresql-server-dev-9.1
11
12echo 'Now run pg512 or pg1024, as-appropriate for your RAM'
13
14# END