use %u instead of %s

This commit is contained in:
Sebastian Hugentobler 2022-01-22 20:06:00 +01:00
parent a3d89f07fa
commit 43dd0abc74
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
4 changed files with 4 additions and 4 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'