We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2fd04 commit c5de7b9Copy full SHA for c5de7b9
src/deploy/NVA_build/noobaa_init.sh
@@ -126,7 +126,7 @@ prepare_agent_conf() {
126
# get AGENT_CONFIG from env var or config.js (volume mount)
127
if [ -z ${AGENT_CONFIG} ]; then
128
cd /root/node_modules/noobaa-core/
129
- AGENT_CONFIG=$(node -e "const config = require('./config'); console.log(config.AGENT_CONFIG || '')")
+ AGENT_CONFIG=$(node -p 'require("config").AGENT_CONFIG || ""')
130
fi
131
132
if [ -z "${AGENT_CONFIG}" ]; then
0 commit comments