summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
authorSheogorath2019-09-03 18:11:47 +0200
committerGitHub2019-09-03 18:11:47 +0200
commit529075fd67ad0d41ba0b25a7de69817dd4cd76fb (patch)
tree294810514e98f29902a4fb1981096c31ad76c900 /lib/config
parentf08fcd30fbe859fa636f494bb949e00ab2cff095 (diff)
parent0be784351d4352df1f87d623de0503a38e376c79 (diff)
Merge pull request #168 from dargmuesli/fix/docker-secret-buffer
Config: Return String Instead Of Buffer For Docker Secrets
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/dockerSecret.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js
index 69e0de36..7ff6506f 100644
--- a/lib/config/dockerSecret.js
+++ b/lib/config/dockerSecret.js
@@ -7,7 +7,7 @@ const basePath = path.resolve('/run/secrets/')
function getSecret (secret) {
const filePath = path.join(basePath, secret)
- if (fs.existsSync(filePath)) return fs.readFileSync(filePath)
+ if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8')
return undefined
}