postgres extension configurable

This commit is contained in:
Benjamin Böhmke committed 2018-06-12 15:41:26 +02:00
1 parent 91df4dd690
commit 06a1869bee
2 files changed
+6 -2

No files matched your search

+5 -2
View File
@@ -90,8 +90,11 @@ postgresql_init() {
psql -h$DB_HOST -p $DB_PORT -U$DB_ROOT_USER -tc "GRANT ALL PRIVILEGES ON DATABASE $DB_DATABASE to $DB_USER;" > /dev/null
# TODO make this configurable
psql -h$DB_HOST -p $DB_PORT -U$DB_ROOT_USER -d $DB_DATABASE -tc "CREATE EXTENSION pg_trgm;" > /dev/null 2> /dev/null || true
# add extension
if [ -n "$PG_EXTENSIONS" ]; then
psql -h$DB_HOST -p $DB_PORT -U$DB_ROOT_USER -d $DB_DATABASE -tc "CREATE EXTENSION $PG_EXTENSIONS;" > /dev/null 2> /dev/null || true
fi
}
postgresql_auto_backup() {