Skip to content

Commit a0d775d

Browse files
committed
Inhibit management of share config.php file when mpf_disable_mission_portal_docroot_sync_from_share_gui is defined
In preparation for possibly removing the share/GUI folder entirely. Ticket: ENT-12658 Changelog: title
1 parent 6567267 commit a0d775d

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

cfe_internal/enterprise/CFE_hub_specific.cf

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

133135
bundle edit_line change_cli_rest_server_url_port

0 commit comments

Comments
 (0)