Sha256: c69360cf658b0e8ab815a32a28a944ad0485dc015ab5bc88289481c8329ac785

Contents?: true

Size: 388 Bytes

Versions: 15

Compression:

Stored size: 388 Bytes

Contents

provision-postgresql() {
  ensure-postgresql-installed
  ensure-postgresql-running
}

ensure-postgresql-installed() {
  if ! has-executable psql; then
    banner 'Installing PostgreSQL'
    install postgresql
    install apt=libpq-dev rpm=postgresql-devel
  fi
}

ensure-postgresql-running() {
  if ! is-running postgres; then
    banner 'Starting PostgreSQL'
    start postgresql
  fi
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
setup_script_generator-0.5.0 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.4.1 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.4.0 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.3.1 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.3.0 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.9 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.8 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.7 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.6 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.5 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.4 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.3 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.2 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.1 lib/setup_script_generator/templates/provisions/postgresql.sh
setup_script_generator-0.2.0 lib/setup_script_generator/templates/provisions/postgresql.sh