Pushiing new changes

This commit is contained in:
Tsvetomir Hristov 2024-10-15 12:13:07 +02:00
parent 28e4954da6
commit d8f50c5886
2 changed files with 10 additions and 17 deletions

View file

@ -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"

View file

@ -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