You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0.0_02_create_user.sh 222B

1234567891011121314
  1. #! /usr/bin/env bash
  2. if [ "${POSTGRES_SLAVE_MODE}" == 1 ]
  3. then
  4. echo "Database is in slave mode. Exiting."
  5. exit 0
  6. fi
  7. if [ "${POSTGRES_DB}" != 'postgres' ]
  8. then
  9. psql <<-EOF
  10. CREATE DATABASE "${POSTGRES_DB}";
  11. EOF
  12. fi