Update prometheus-install.sh: Service creation fix (#1417)

This commit is contained in:
Michel Roegl-Brunner 2025-01-11 09:55:36 +01:00 committed by GitHub
parent 0d8dcd5643
commit 1476d1b6c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ msg_ok "Installed Prometheus"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/prometheus.service
echo "[Unit]
[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target
@ -49,7 +49,7 @@ ExecStart=/usr/local/bin/prometheus \
ExecReload=/bin/kill -HUP \$MAINPID
[Install]
WantedBy=multi-user.target"
WantedBy=multi-user.target
EOF
systemctl enable -q --now prometheus
msg_ok "Created Service"