diff --git a/ct/kibana.sh b/ct/kibana.sh index 7194a97c..465c7829 100644 --- a/ct/kibana.sh +++ b/ct/kibana.sh @@ -75,7 +75,5 @@ build_container description msg_ok "Completed Successfully!\n" -echo -e "${APP} is installed! For security purposes, ${APP} is only reachable from localhost.\n -To access the ${APP} dashboard, please adjust ${BL}server.host${CL} in ${BL}/etc/kibana/kibana.yml${CL}.\n -After that, ${APP} should bre reachable at - ${BL}http://${IP}:5601${CL} \n" +echo -e "${APP} should be reachable by going to the following URL. + ${BL}http://${IP}:5601${CL}\n" diff --git a/install/kibana-install.sh b/install/kibana-install.sh index 9f2fda75..95cec777 100644 --- a/install/kibana-install.sh +++ b/install/kibana-install.sh @@ -15,12 +15,12 @@ network_check update_os msg_info "Installing Dependencies" +$STD apt-get install -y curl $STD apt-get install -y apt-transport-https $STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Elastic Repository" -mkdir -p /etc/apt/keyrings wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" >/etc/apt/sources.list.d/elastic-8.x.list msg_ok "Set up Elastic Repository" @@ -30,6 +30,11 @@ $STD apt-get update $STD apt-get install -y kibana msg_ok "Installed Kibana" +msg_info "Configuring hostname" +IP=$(hostname -I | awk '{print $1}') +sed -i -E "s/#server.host: \"localhost\"/server.host: \"${IP}\"/" /etc/kibana/kibana.yml +msg_ok "Configured hostname" + msg_info "Creating Service" cat </etc/systemd/system/Kibana.service [Unit]