mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
apply suggestions
This commit is contained in:
parent
9aab7e675d
commit
7363c7358f
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2024 community-scripts ORG
|
||||||
# Author: tteck (tteckster)
|
# Author: Denys Holius https://github.com/denisgolius
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://prometheus.io/
|
# Source: https://victoriametrics.com/
|
||||||
|
|
||||||
# App Default Values
|
# App Default Values
|
||||||
APP="VictoriaMetrics"
|
APP="VictoriaMetrics"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2024 community-scripts ORG
|
||||||
# Author: tteck (tteckster)
|
# Author: Denys Holius https://github.com/denisgolius
|
||||||
# License: MIT
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# Source: https://victoriametrics.com/
|
||||||
|
|
||||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
@ -14,9 +14,11 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt install -y \
|
||||||
$STD apt-get install -y sudo
|
curl \
|
||||||
$STD apt-get install -y mc
|
sudo \
|
||||||
|
mc
|
||||||
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing VictoriaMetrics"
|
msg_info "Installing VictoriaMetrics"
|
||||||
@ -46,8 +48,8 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
|||||||
msg_ok "Installed VictoriaMetrics"
|
msg_ok "Installed VictoriaMetrics"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
service_path="/etc/systemd/system/victoriametrics.service"
|
cat <<EOF >/etc/systemd/system/victoriametrics.service
|
||||||
echo "[Unit]
|
[Unit]
|
||||||
Description=VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.
|
Description=VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.
|
||||||
# https://docs.victoriametrics.com
|
# https://docs.victoriametrics.com
|
||||||
# See https://docs.victoriametrics.com/#list-of-command-line-flags to get more information about supported command-line flags
|
# See https://docs.victoriametrics.com/#list-of-command-line-flags to get more information about supported command-line flags
|
||||||
@ -79,7 +81,9 @@ StandardError=syslog
|
|||||||
SyslogIdentifier=victoriametrics
|
SyslogIdentifier=victoriametrics
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
|
||||||
systemctl enable -q --now victoriametrics
|
systemctl enable -q --now victoriametrics
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user