diff --git a/ct/kibana.sh b/ct/kibana.sh index e7966069..7b30dd70 100644 --- a/ct/kibana.sh +++ b/ct/kibana.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/ELKozel/Proxmox/main/misc/build.func) -# Copyright (c) 2024 ELKozel -# Author: T.H. (ELKozel) +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-Author: T.H. (ELKozel) # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE @@ -60,19 +61,11 @@ if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then [[ ${prompt,,} =~ ^(y|yes)$ ]] || exit fi -msg_info "Stopping ${APP}" -systemctl stop Kibana -msg_ok "Stopped ${APP}" - msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" -msg_info "Starting ${APP}" -systemctl start Kibana -msg_ok "Started ${APP}" - msg_ok "Updated Successfully" exit } @@ -82,5 +75,7 @@ build_container description msg_ok "Completed Successfully!\n" -echo -e "${APP} Setup should be reachable by going to the following URL. +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" diff --git a/install/kibana-install.sh b/install/kibana-install.sh index 7b725e90..43899241 100644 --- a/install/kibana-install.sh +++ b/install/kibana-install.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Copyright (c) 2021-2024 tteck -# Author: T.H. (ELKozel) +# Author: tteck (tteckster) +# Co-Author: T.H. (ELKozel) # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE @@ -14,10 +15,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y wget -$STD apt-get install -y sudo -$STD apt-get install -y mc -$STD apt-get install -y ca-certificates $STD apt-get install -y apt-transport-https $STD apt-get install -y gnupg msg_ok "Installed Dependencies" @@ -30,7 +27,7 @@ msg_ok "Set up Elastic Repository" msg_info "Installing Kibana" $STD apt-get update -$STD apt-get install kibana +$STD apt-get install -y kibana msg_ok "Installed Kibana" msg_info "Creating Service" @@ -60,6 +57,7 @@ RestartSec=3 StartLimitBurst=3 StartLimitInterval=60 + WorkingDirectory=/usr/share/kibana StandardOutput=journal