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
o2webappizer-0.2.6 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.5 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.4 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.3 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.2 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.1 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.2.0 templates/config/sunzi/recipes/postgres.sh
sunzi-rails-0.2.19 lib/templates/create/recipes/postgres.sh
o2webappizer-0.1.15 templates/config/sunzi/recipes/postgres.sh
sunzi-rails-0.2.18 lib/templates/create/recipes/postgres.sh
o2webappizer-0.1.14 templates/config/sunzi/recipes/postgres.sh
sunzi-rails-0.2.17 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.16 lib/templates/create/recipes/postgres.sh
sunzi-rails-0.2.15 lib/templates/create/recipes/postgres.sh
o2webappizer-0.1.13 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.1.12 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.1.11 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.1.10 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.1.9 templates/config/sunzi/recipes/postgres.sh
o2webappizer-0.1.8 templates/config/sunzi/recipes/postgres.sh