Quote extension name

This commit is contained in:
Daniel Berteaud 2024-01-10 22:34:20 +01:00
parent 5a7b12ffde
commit d3ffffae98
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ _EOSQL
if [ -n "${DB_EXTENSIONS}" ]; then
for EXT in $(echo ${DB_EXTENSIONS} | sed -e 's/,/\n/g'); do
psql -d ${DB_NAME} <<_EOSQL
CREATE EXTENSION IF NOT EXISTS ${EXT};
CREATE EXTENSION IF NOT EXISTS "${EXT}";
_EOSQL
done
fi

View File

@ -74,7 +74,7 @@ job "postgres-manage" {
driver = "docker"
config {
image = "danielberteaud/ldap2pg:6.0-7"
image = "danielberteaud/ldap2pg:6.0-8"
readonly_rootfs = true
pids_limit = 20
}

View File

@ -32,7 +32,7 @@ _EOSQL
if [ -n "${DB_EXTENSIONS}" ]; then
for EXT in $(echo ${DB_EXTENSIONS} | sed -e 's/,/\n/g'); do
psql -d ${DB_NAME} <<_EOSQL
CREATE EXTENSION IF NOT EXISTS ${EXT};
CREATE EXTENSION IF NOT EXISTS "${EXT}";
_EOSQL
done
fi

View File

@ -171,7 +171,7 @@ pg:
# manage can create database, users and sync permissions from LDAP (using ldap2pg)
manage:
# Image to use
image: '[[ .docker.repo ]]ldap2pg:6.0-7'
image: '[[ .docker.repo ]]ldap2pg:6.0-8'
# Resource allocation
resources: