@@ -115,19 +115,21 @@ bundle agent update_cli_rest_server_url_config
115115 "regex_test_pattern" string => ".*localhost:$(cfe_internal_hub_vars.https_port).*";
116116
117117 files:
118- "$(mp_share_config_file)"
119- edit_line => change_cli_rest_server_url_port,
120- if => and(
121- fileexists("$(mp_share_config_file)"),
122- islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_share_config_file)"), 1)
123- );
124-
125- "$(mp_config_file)"
126- edit_line => change_cli_rest_server_url_port,
127- if => and(
128- fileexists("$(mp_config_file)"),
129- islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_config_file)"), 1)
130- );
118+ !mpf_disable_mission_portal_docroot_sync_from_share_gui::
119+ "$(mp_share_config_file)"
120+ edit_line => change_cli_rest_server_url_port,
121+ if => and(
122+ fileexists("$(mp_share_config_file)"),
123+ islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_share_config_file)"), 1)
124+ );
125+
126+ any::
127+ "$(mp_config_file)"
128+ edit_line => change_cli_rest_server_url_port,
129+ if => and(
130+ fileexists("$(mp_config_file)"),
131+ islessthan(countlinesmatching("$(regex_test_pattern)", "$(mp_config_file)"), 1)
132+ );
131133}
132134
133135bundle edit_line change_cli_rest_server_url_port
0 commit comments