diff --git a/scripts/install.py b/scripts/install.py index e4875f194..4547ca2ef 100755 --- a/scripts/install.py +++ b/scripts/install.py @@ -1114,7 +1114,7 @@ def tweak_malcolm_runtime(self, malcolm_install_path): logstashOpen = False filebeatTcpOpen = False elif openPortsSelection == 'y': - opensearchOpen = True + opensearchOpen = opensearchPrimaryMode == DatabaseMode.OpenSearchLocal logstashOpen = True filebeatTcpOpen = True else: