chore: update to read-config-ng
This commit is contained in:
parent
506918dc68
commit
152ac1e898
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mute": [
|
"mute": [
|
||||||
"read-config",
|
"read-config-ng",
|
||||||
"socket.io",
|
"socket.io",
|
||||||
"standard",
|
"standard",
|
||||||
"bithound"
|
"bithound"
|
||||||
|
|
|
@ -90,7 +90,7 @@ let config = {
|
||||||
try {
|
try {
|
||||||
if (fs.existsSync(configPath)) {
|
if (fs.existsSync(configPath)) {
|
||||||
console.log('ephemeral_auth service reading config from: ' + configPath)
|
console.log('ephemeral_auth service reading config from: ' + configPath)
|
||||||
config = require('read-config')(configPath)
|
config = require('read-config-ng')(configPath)
|
||||||
} else {
|
} else {
|
||||||
console.error('\n\nERROR: Missing config.json for webssh. Current config: ' + JSON.stringify(config))
|
console.error('\n\nERROR: Missing config.json for webssh. Current config: ' + JSON.stringify(config))
|
||||||
console.error('\n See config.json.sample for details\n\n')
|
console.error('\n See config.json.sample for details\n\n')
|
||||||
|
|
Loading…
Reference in a new issue