Sha256: 0386c7db7f89ba823af81725c1805b43bb1dfaf7b8c25c6518e8630314d8c107

Contents?: true

Size: 438 Bytes

Versions: 36

Compression:

Stored size: 438 Bytes

Contents

DB_NAME=<%= @attributes.db_database %>
DB_USER=<%= @attributes.db_username %>
DB_PWD=<%= @attributes.db_password %>

if sunzi.to_be_done "install postgres"; then
  sunzi.install "postgresql"
  sunzi.install "postgresql-contrib"
  sunzi.install "libpq-dev"

  sudo -u postgres psql -c "create user $DB_USER with password '$DB_PWD';"
  sudo -u postgres psql -c "create database $DB_NAME owner $DB_USER;"

  sunzi.done "install postgres"
fi

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
sunzi-rails-0.2.14 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.13 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.12 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.11 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.10 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.9 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.8 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.7 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.6 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.5 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.4 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.3 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.2 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.1 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.0 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.1.0 lib/templates/create/recipes/postgres.sh