Skip to content

Commit 75d54b2

Browse files
Merge pull request #2987 from craigcomstock/ENT-12658/master
Inhibit management of share config.php file when mpf_disable_mission_portal_docroot_sync_from_share_gui is defined
2 parents 6567267 + 94e503c commit 75d54b2

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Prepare Artifacts for Uploading
3535
run: tar -zcvf /tmp/workspace.tgz ./ && mv /tmp/workspace.tgz ./
3636
- name: Upload The Workspace as Artifact
37-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: workspace
4040
path: workspace.tgz

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)