Skip to content

Commit

Permalink
Merge branch '1337-travis-postgres-8.4-cleaned'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 25, 2013
2 parents 91f3184 + 1048efa commit bd918a8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/travis-install-dependencies
Expand Up @@ -13,12 +13,16 @@ then
fi

# Install postgres and solr
# We need this ppa so we can install postgres-8.4
sudo add-apt-repository -yy ppa:pitti/postgresql
sudo apt-get update -qq
sudo apt-get install postgresql-$PGVERSION solr-jetty libcommons-fileupload-java:amd64=1.2.2-1

sudo service postgresql reload
if [ $PGVERSION == '8.4' ]
then
# force postgres to use 5432 as it's port
sudo sed -i -e 's/port = 5433/port = 5432/g' /etc/postgresql/8.4/main/postgresql.conf
fi

sudo service postgresql restart

# Setup postgres' users and databases
sudo -u postgres psql -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
Expand Down

0 comments on commit bd918a8

Please sign in to comment.