Skip to content

Commit

Permalink
Merge pull request noobaa#7641 from romayalon/romy-update-config-dir-…
Browse files Browse the repository at this point in the history
…of-clis

NSFS | NC | CLI | Update config root default of manage_nsfs and health
  • Loading branch information
romayalon authored Dec 5, 2023
2 parents a2c631e + 357e6ff commit 756e5ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ async function main(argv = minimist(process.argv.slice(2))) {
try {

if (argv.help || argv.h) return print_usage();
const config_root = argv.config_root ? String(argv.config_root) : config.NSFS_NC_DEFAULT_CONF_DIR;
const config_root = argv.config_root ? String(argv.config_root) : config.NSFS_NC_CONF_DIR;
// disable console log to avoid unwanted logs in console.
await disable_console_log();
const https_port = Number(argv.https_port) || 6443;
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/manage_nsfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function main(argv = minimist(process.argv.slice(2))) {
return;
}
}
const config_root = argv.config_root ? String(argv.config_root) : config.NSFS_NC_DEFAULT_CONF_DIR;
const config_root = argv.config_root ? String(argv.config_root) : config.NSFS_NC_CONF_DIR;
if (!config_root) {
console.error('Error: Config dir should not be empty');
print_account_usage();
Expand Down

0 comments on commit 756e5ee

Please sign in to comment.