From 43dd0abc74a4f9ae449a3bb82cfa991a083adf04 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sat, 22 Jan 2022 20:06:00 +0100 Subject: [PATCH] use %u instead of %s --- rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl | 2 +- rootfs/etc/confd/templates/pgsql-virtual-alias-maps.cf.tmpl | 2 +- .../etc/confd/templates/pgsql-virtual-mailbox-domains.cf.tmpl | 2 +- rootfs/etc/confd/templates/pgsql-virtual-mailbox-maps.cf.tmpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl b/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl index 43006c7..86983da 100644 --- a/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl +++ b/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl @@ -2,4 +2,4 @@ hosts = {{ getenv "DB_HOST" }} user = {{ getenv "DB_USER" "email" }} password = {{ getenv "DB_PASSWORD" }} dbname = {{ getenv "DB_NAME" "email" }} -query = SELECT source FROM virtual_aliases WHERE destination='%s' +query = SELECT source FROM virtual_aliases WHERE destination='%u' diff --git a/rootfs/etc/confd/templates/pgsql-virtual-alias-maps.cf.tmpl b/rootfs/etc/confd/templates/pgsql-virtual-alias-maps.cf.tmpl index 215d8a6..d7e5ef4 100644 --- a/rootfs/etc/confd/templates/pgsql-virtual-alias-maps.cf.tmpl +++ b/rootfs/etc/confd/templates/pgsql-virtual-alias-maps.cf.tmpl @@ -2,4 +2,4 @@ hosts = {{ getenv "DB_HOST" }} user = {{ getenv "DB_USER" "email" }} password = {{ getenv "DB_PASSWORD" }} dbname = {{ getenv "DB_NAME" "email" }} -query = SELECT destination FROM virtual_aliases WHERE source='%s' +query = SELECT destination FROM virtual_aliases WHERE source='%u' diff --git a/rootfs/etc/confd/templates/pgsql-virtual-mailbox-domains.cf.tmpl b/rootfs/etc/confd/templates/pgsql-virtual-mailbox-domains.cf.tmpl index 6fd5b58..89292e5 100644 --- a/rootfs/etc/confd/templates/pgsql-virtual-mailbox-domains.cf.tmpl +++ b/rootfs/etc/confd/templates/pgsql-virtual-mailbox-domains.cf.tmpl @@ -2,4 +2,4 @@ hosts = {{ getenv "DB_HOST" }} user = {{ getenv "DB_USER" "email" }} password = {{ getenv "DB_PASSWORD" }} dbname = {{ getenv "DB_NAME" "email" }} -query = SELECT name FROM virtual_domains WHERE name='%s' +query = SELECT name FROM virtual_domains WHERE name='%u' diff --git a/rootfs/etc/confd/templates/pgsql-virtual-mailbox-maps.cf.tmpl b/rootfs/etc/confd/templates/pgsql-virtual-mailbox-maps.cf.tmpl index 971fa97..addd0fb 100644 --- a/rootfs/etc/confd/templates/pgsql-virtual-mailbox-maps.cf.tmpl +++ b/rootfs/etc/confd/templates/pgsql-virtual-mailbox-maps.cf.tmpl @@ -2,4 +2,4 @@ hosts = {{ getenv "DB_HOST" }} user = {{ getenv "DB_USER" "email" }} password = {{ getenv "DB_PASSWORD" }} dbname = {{ getenv "DB_NAME" "email" }} -query = SELECT email FROM virtual_users WHERE email ='%s' +query = SELECT email FROM virtual_users WHERE email ='%u'