forked from wazuh/wazuh-docker
Customize login styles
This commit is contained in:
@@ -3,22 +3,12 @@
|
|||||||
|
|
||||||
if [[ $CHANGE_WELCOME == "true" ]]
|
if [[ $CHANGE_WELCOME == "true" ]]
|
||||||
then
|
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 "Set Wazuh app as the default landing page"
|
||||||
echo "server.defaultRoute: /app/wazuh" >> /usr/share/kibana/config/kibana.yml
|
echo "server.defaultRoute: /app/wazuh" >> /usr/share/kibana/config/kibana.yml
|
||||||
|
|
||||||
# Redirect Kibana welcome screen to Discover
|
echo "Set custom welcome styles"
|
||||||
echo "Redirect Kibana welcome screen to Discover"
|
cp -f /tmp/custom_welcome/template.js.hbs /usr/share/kibana/src/legacy/ui/ui_render/bootstrap/template.js.hbs
|
||||||
sed -i "s:'/app/kibana#/home':'/app/wazuh':g" $kibana_path/src/ui/public/chrome/directives/global_nav/global_nav.html
|
cp -f /tmp/custom_welcome/security-login.style.css /usr/share/kibana/optimize/bundles/security-login.style.css
|
||||||
sed -i "s:'/app/kibana#/home':'/app/wazuh':g" $kibana_path/src/ui/public/chrome/directives/header_global_nav/header_global_nav.js
|
cp -f /tmp/custom_welcome/*svg /usr/share/kibana/optimize/bundles/
|
||||||
|
|
||||||
# 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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user