forked from wazuh/wazuh-docker
Hide undesired links
This commit is contained in:
@@ -65,8 +65,6 @@ RUN chmod +x ./xpack_config.sh
|
|||||||
|
|
||||||
RUN ./xpack_config.sh
|
RUN ./xpack_config.sh
|
||||||
|
|
||||||
RUN rm -rf ./optimize/bundles
|
|
||||||
|
|
||||||
COPY --chown=kibana:kibana ./config/welcome_wazuh.sh ./
|
COPY --chown=kibana:kibana ./config/welcome_wazuh.sh ./
|
||||||
|
|
||||||
RUN chmod +x ./welcome_wazuh.sh
|
RUN chmod +x ./welcome_wazuh.sh
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
if [[ $CHANGE_WELCOME == "true" ]]
|
if [[ $CHANGE_WELCOME == "true" ]]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
rm -rf ./optimize/bundles
|
||||||
|
|
||||||
kibana_path="/usr/share/kibana"
|
kibana_path="/usr/share/kibana"
|
||||||
# Set Wazuh app as the default landing page
|
# 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"
|
||||||
@@ -12,4 +14,10 @@ then
|
|||||||
echo "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/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
|
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/x-pack/plugins/rollup/public/crud_app/index.js
|
||||||
|
sed -i 's#visible: true#visible: false#g' $kibana_path/x-pack/plugins/license_management/public/management_section.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user