summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}