Last active
July 11, 2017 20:10
-
-
Save rastasheep/4b7bf6ce1344dc0c00a0 to your computer and use it in GitHub Desktop.
Revisions
-
rastasheep revised this gist
Apr 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ sudo apt-get remove -y postgresql-client-9.3 postgresql-9.3 postgresql-contrib-9 wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - echo " deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee -a /etc/apt/sources.list sudo apt-get update sudo apt-get -y --force-yes install postgresql-9.4 postgresql-contrib-9.4 sudo su - postgres -c "pg_dropcluster --stop 9.4 main" sudo su - postgres -c "pg_createcluster --start -e UTF-8 9.4 main" sudo su - postgres -c "psql -c \"CREATE USER runner WITH PASSWORD 'semaphoredb';\" -d template1" -
rastasheep revised this gist
Feb 24, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,5 @@ sudo apt-get -y --force-yes install postgresql-9.4 sudo su - postgres -c "pg_dropcluster --stop 9.4 main" sudo su - postgres -c "pg_createcluster --start -e UTF-8 9.4 main" sudo su - postgres -c "psql -c \"CREATE USER runner WITH PASSWORD 'semaphoredb';\" -d template1" sudo su - postgres -c "psql -c \"ALTER USER runner CREATEUSER CREATEDB;\" -d template1" sudo service postgresql start || true -
rastasheep created this gist
Jan 6, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ sudo apt-get remove -y postgresql-client-9.3 postgresql-9.3 postgresql-contrib-9.3 postgresql-server-dev-9.3 wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - echo " deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee -a /etc/apt/sources.list sudo apt-get update sudo apt-get -y --force-yes install postgresql-9.4 sudo su - postgres -c "pg_dropcluster --stop 9.4 main" sudo su - postgres -c "pg_createcluster --start -e UTF-8 9.4 main" sudo su - postgres -c "psql -c \"CREATE USER runner WITH PASSWORD 'semaphoredb';\" -d template1" sudo su - postgres -c "psql -c \"ALTER USER runner CREATEUSER CREATEDB;\" -d template1"