Compare commits

...

5 Commits

Author SHA1 Message Date
Rémi Bédard-Couture
853d84b3b4
Merge 5b93531fcbab05632acf91ca1586cad4ad98203d into c926ed1fbcf20a27ca80120a16c4a9767bd5ee40 2024-09-03 10:54:58 -04:00
tteckster
c926ed1fbc
Update prometheus-install.sh
tweak
2024-09-03 10:54:34 -04:00
Rémi Bédard-Couture
5b93531fcb Move configuration notice to main script 2024-09-03 08:55:02 -04:00
Rémi Bédard-Couture
0eb6e0decc Pass -y argument to apt-get cleanup commands 2024-09-03 08:54:11 -04:00
Rémi Bédard-Couture
bf7aa01d76 Point build.func script source to original repo (tteck) 2024-09-03 08:50:45 -04:00
3 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/remz1337/Proxmox/remz/misc/build.func) source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster)
# Co-Author: remz1337 # Co-Author: remz1337
@ -68,3 +68,4 @@ build_container
description description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "Don't forget to setup reverse proxy. See ${BL}https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-settings-in-nginx-config-ssl-termination${CL}"

View File

@ -41,8 +41,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get autoremove $STD apt-get -y autoremove
$STD apt-get autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"
echo -e "Don't forget to setup reverse proxy. See ${BL}https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-settings-in-nginx-config-ssl-termination${CL}"

View File

@ -23,8 +23,8 @@ msg_info "Installing Prometheus"
RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
mkdir -p /etc/prometheus mkdir -p /etc/prometheus
mkdir -p /var/lib/prometheus mkdir -p /var/lib/prometheus
$STD wget https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz
$STD tar -xvf prometheus-${RELEASE}.linux-amd64.tar.gz tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz
cd prometheus-${RELEASE}.linux-amd64 cd prometheus-${RELEASE}.linux-amd64
mv prometheus promtool /usr/local/bin/ mv prometheus promtool /usr/local/bin/
mv consoles/ console_libraries/ /etc/prometheus/ mv consoles/ console_libraries/ /etc/prometheus/
@ -51,7 +51,7 @@ ExecStart=/usr/local/bin/prometheus \
[Install] [Install]
WantedBy=multi-user.target" >$service_path WantedBy=multi-user.target" >$service_path
$STD sudo systemctl enable --now prometheus systemctl enable -q --now prometheus
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh