install-ubuntu.sh 478 Bytes
Newer Older
Daniel Baur's avatar
Daniel Baur committed
1 2 3 4 5 6 7 8
#!/bin/bash -e

ctx logger info "Installing postgre"
ctx logger debug "${COMMAND}"

sudo apt-get update
sudo apt-get -y install postgresql

9 10 11 12 13 14
sudo echo "host all all 0.0.0.0/0 trust" | sudo tee --append /etc/postgresql/9.3/main/pg_hba.conf
sudo sed -i "/listen_addresses/c\listen_addresses='*'" /etc/postgresql/9.3/main/postgresql.conf
sudo -H -u postgres bash -c '/usr/bin/createdb ghost_testing -O postgres' 

sudo service postgresql restart

Daniel Baur's avatar
Daniel Baur committed
15
ctx logger info "Installed postgre"