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.
123456789101112 |
- #! /usr/bin/env bash
-
- if [ "${POSTGRES_MASTER_MODE}" != 1 ]
- then
- echo "Database is not in master mode. Exiting."
- exit 0
- fi
-
- psql <<-EOF
- CREATE USER ${POSTGRES_RO_USER} WITH ENCRYPTED PASSWORD '${POSTGRES_RO_PASSWORD}';-- NOINHERIT;
- GRANT readaccess to ${POSTGRES_RO_USER};
- EOF
|