Skip to content

Commit

Permalink
Update cfe_internal/enterprise/CFE_hub_specific.cf
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Anderson <[email protected]>
  • Loading branch information
aleksandrychev and nickanderson authored Aug 31, 2024
1 parent ee4be82 commit 5ff1f14
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cfe_internal/enterprise/CFE_hub_specific.cf
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,19 @@ bundle agent update_cli_rest_server_url_config
"regex_test_pattern" string => ".*localhost:$(cfe_internal_hub_vars.https_port).*";

files:
"$(mp_config_file)"
edit_line => change_cli_rest_server_url_port,
if => and(
fileexists("$(mp_config_file)"),
islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_config_file)"), 1)
);
"$(mp_share_config_file)"
edit_line => change_cli_rest_server_url_port,
if => and(
fileexists("$(mp_share_config_file)"),
islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_share_config_file)"), 1)
);

"$(mp_config_file)"
edit_line => change_cli_rest_server_url_port,
if => and(
fileexists("$(mp_config_file)"),
islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_config_file)"), 1)
);
}

bundle edit_line change_cli_rest_server_url_port
Expand Down

0 comments on commit 5ff1f14

Please sign in to comment.