From a96d50cc1354cd7e7a40b87d4e2747af56dc238b Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sat, 22 Jan 2022 20:12:46 +0100 Subject: [PATCH] use %u instead of %s --- rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl b/rootfs/etc/confd/templates/pgsql-login-maps.cf.tmpl index 86983da..10250be 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='%u' +query = SELECT source FROM virtual_aliases WHERE destination='%s%d'