This repository has been archived on 2022-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-16 13:47:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
VCS_TAG=$(cat "${__object:?}/parameter/version")
|
2021-12-06 13:59:34 +01:00
|
|
|
VCS_URL="https://code.recycled.cloud/RecycledCloud/prometheus-veeam-exporter/raw/tag/v${VCS_TAG:?}/prometheus-veeam-exporter"
|
2021-11-16 13:47:02 +01:00
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
cd /opt/prometheus-veeam-exporter
|
|
|
|
|
|
|
|
# Fetch sources
|
|
|
|
curl "$VCS_URL" -o prometheus-veeam-exporter
|
|
|
|
|
|
|
|
# Install virtualenv and dependencies
|
|
|
|
python3 -m venv venv
|
|
|
|
. venv/bin/activate
|
|
|
|
|
|
|
|
pip3 install prometheus_client datetime
|
|
|
|
|
|
|
|
# Start service
|
|
|
|
systemctl restart prometheus-veeam-exporter
|
|
|
|
EOF
|