mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 13:03:23 +00:00
24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
Bash
#!/bin/bash
|
|
# Wazuh Docker Copyright (C) 2020 Wazuh Inc. (License GPLv2)
|
|
|
|
if [[ $CHANGE_WELCOME == "true" ]]
|
|
then
|
|
|
|
rm -rf ./optimize/bundles
|
|
|
|
kibana_path="/usr/share/kibana"
|
|
# Set Wazuh app as the default landing page
|
|
echo "Set Wazuh app as the default landing page"
|
|
echo "server.defaultRoute: /app/wazuh" >> /usr/share/kibana/config/kibana.yml
|
|
|
|
# Redirect Kibana welcome screen to Discover
|
|
echo "Redirect Kibana welcome screen to Discover"
|
|
sed -i "s:'/app/kibana#/home':'/app/wazuh':g" $kibana_path/src/ui/public/chrome/directives/global_nav/global_nav.html
|
|
sed -i "s:'/app/kibana#/home':'/app/wazuh':g" $kibana_path/src/ui/public/chrome/directives/header_global_nav/header_global_nav.js
|
|
|
|
# Redirect Kibana welcome screen to Discover
|
|
echo "Hide undesired links"
|
|
sed -i 's#visible: true#visible: false#g' $kibana_path/node_modules/x-pack/plugins/rollup/public/crud_app/index.js
|
|
sed -i 's#visible: true#visible: false#g' $kibana_path/node_modules/x-pack/plugins/license_management/public/management_section.js
|
|
fi
|