Last active
November 11, 2015 03:51
-
-
Save jkburges/6f10d58a2319afada077 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
#!/bin/bash | |
# Run as: | |
# curl -s "<url to this>" | sudo time bash | |
service tomcat7_default stop | |
apt-get install -y postgresql-9.4-postgis-2.1 | |
service postgresql stop | |
pg_dropcluster --stop 9.4 main | |
pg_upgradecluster -k -v 9.4 -m upgrade 9.3 main /var/lib/postgresql/9.4/main | |
ln -f -s /etc/ssl/certs/ssl-cert-snakeoil.pem /var/lib/postgresql/9.4/main/server.crt | |
ln -f -s /etc/ssl/private/ssl-cert-snakeoil.key /var/lib/postgresql/9.4/main/server.key | |
pg_dropcluster --stop 9.3 main | |
echo "Now run 'bin/po-box.sh' on the host" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment