Add privileges to DB owner on functions
This commit is contained in:
parent
5c49fa24d0
commit
f1ed3ea4bd
|
@ -18,6 +18,9 @@ _EOSQL
|
|||
psql <<_EOSQL
|
||||
SELECT 'CREATE DATABASE "${DB_NAME}" OWNER "${DB_OWNER}" ENCODING "${DB_ENCODING}" LOCALE "${DB_LOCALE}"'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = '${DB_NAME}')\gexec
|
||||
_EOSQL
|
||||
psql -d ${DB_NAME} <<_EOSQL
|
||||
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO pg_database_owner;
|
||||
_EOSQL
|
||||
else
|
||||
echo "Would create user ${DB_OWNER} and database ${DB_NAME} (OWNER \"${DB_OWNER}\" ENCODING \"${DB_ENCODING}\" LOCALE \"${DB_LOCALE}\"), but we're running in dry mode"
|
||||
|
|
|
@ -18,7 +18,6 @@ pg:
|
|||
# Eg
|
||||
# env:
|
||||
# PGBACKREST_PROCESS_MAX: 4
|
||||
# PGBACKREST_REPO1_RETENTION_FULL_TYPE: time
|
||||
# PGBACKREST_REPO1_RETENTION_FULL: 30
|
||||
# PGBACKREST_REPO1_RETENTION_DIFF: 7
|
||||
# PGBACKREST_REPO1_TYPE: sftp
|
||||
|
@ -171,7 +170,7 @@ pg:
|
|||
# manage can create database, users and sync permissions from LDAP (using ldap2pg)
|
||||
manage:
|
||||
# Image to use
|
||||
image: danielberteaud/ldap2pg:6.0-3
|
||||
image: danielberteaud/ldap2pg:6.0-4
|
||||
|
||||
# Resource allocation
|
||||
resources:
|
||||
|
|
Loading…
Reference in New Issue