template lua script

This commit is contained in:
Sebastian Hugentobler 2021-08-23 19:02:34 +02:00
parent 23f857e62a
commit 6d5774cd90
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -5,7 +5,7 @@ local clientSecret = {{ getenv "CLIENT_SECRET" }}
local username = {{ getenv "OAUTH_ADMIN_USER" }} local username = {{ getenv "OAUTH_ADMIN_USER" }}
local password = {{ getenv "OAUTH_ADMIN_PASSWORD" }} local password = {{ getenv "OAUTH_ADMIN_PASSWORD" }}
local tokenUrl = {{ getenv "GRANT_URL" }} local tokenUrl = {{ getenv "GRANT_URL" }}
local userUrl = {{ "USER_URL" }} local userUrl = {{ getenv "USER_URL" }}
function os.capture(cmd, raw) function os.capture(cmd, raw)
local f = assert(io.popen(cmd, 'r')) local f = assert(io.popen(cmd, 'r'))