From 5d98062d70a62d592a936701c9f45c4587531293 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 23 Aug 2021 19:04:43 +0200 Subject: [PATCH] quote variables --- rootfs/etc/confd/templates/oauth2-userdb.lua.tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rootfs/etc/confd/templates/oauth2-userdb.lua.tmpl b/rootfs/etc/confd/templates/oauth2-userdb.lua.tmpl index 94bdee4..0587b78 100644 --- a/rootfs/etc/confd/templates/oauth2-userdb.lua.tmpl +++ b/rootfs/etc/confd/templates/oauth2-userdb.lua.tmpl @@ -1,11 +1,11 @@ local rapidjson = require('rapidjson') -local clientId = {{ getenv "CLIENT_ID" }} -local clientSecret = {{ getenv "CLIENT_SECRET" }} -local username = {{ getenv "OAUTH_ADMIN_USER" }} -local password = {{ getenv "OAUTH_ADMIN_PASSWORD" }} -local tokenUrl = {{ getenv "GRANT_URL" }} -local userUrl = {{ getenv "USER_URL" }} +local clientId = "{{ getenv "CLIENT_ID" }}" +local clientSecret = "{{ getenv "CLIENT_SECRET" }}" +local username = "{{ getenv "OAUTH_ADMIN_USER" }}" +local password = "{{ getenv "OAUTH_ADMIN_PASSWORD" }}" +local tokenUrl = "{{ getenv "GRANT_URL" }}" +local userUrl = "{{ getenv "USER_URL" }}" function os.capture(cmd, raw) local f = assert(io.popen(cmd, 'r'))