blob: d3fc1366afd15ce8a27b1410f1c3675b9761dd59 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
export DASHBOARDS_HOME=/usr/share/opensearch-dashboards
PLUGIN_LIST=$($DASHBOARDS_HOME/bin/opensearch-dashboards-plugin list)
if [[ "${OPENSEARCH_DASHBOARDS_SECURITY_PLUGIN:-True}" == "False" ]]; then
if [[ ${PLUGIN_LIST} =~ "securityDashboards" ]]; then
$DASHBOARDS_HOME/bin/opensearch-dashboards-plugin remove securityDashboards
fi
fi
|