Skip to content

Instantly share code, notes, and snippets.

@snaga
Created September 12, 2013 08:10
Show Gist options
  • Select an option

  • Save snaga/6534305 to your computer and use it in GitHub Desktop.

Select an option

Save snaga/6534305 to your computer and use it in GitHub Desktop.
provision file for postgresql93 with vagrant
#
# provision file for postgresql93 on vagrant
#
sudo rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
sudo yum install -y postgresql93 postgresql93-server postgresql93-contrib postgresql93-libs
sudo -u postgres /usr/pgsql-9.3/bin/initdb -D /var/lib/pgsql/9.3/data --no-locale -E utf-8 -k
sudo /sbin/chkconfig postgresql-9.3 on
sudo /sbin/service postgresql-9.3 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment