diff options
Diffstat (limited to '')
-rw-r--r-- | lib/config/dockerSecret.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js index 901ff2f5..bd397f58 100644 --- a/lib/config/dockerSecret.js +++ b/lib/config/dockerSecret.js @@ -7,7 +7,7 @@ const basePath = path.resolve('/var/run/secrets/') function getSecret (secret) { const filePath = path.join(basePath, secret) - if (fs.existsSync(filePath)) return fs.readFileSync(filePath).toString('utf8') + if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8') return undefined } |