6
0
Fork 0

Fix __prometheus_yoctotemp_exporter on Debian buster

This commit is contained in:
Timothée Floure 2021-03-03 15:33:10 +01:00
parent 8136c771a9
commit 207ea23c89
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
VCS_TAG=$(cat "$__object/parameter/version")
VCS_URL="https://code.recycled.cloud/e-Durable/prometheus-yoctotemp-exporter/raw/tag/$VCS_TAG/prometheus-yoctotemp-exporter"
VCS_URL="https://code.recycled.cloud/RecycledCloud/prometheus-yoctotemp-exporter/raw/tag/$VCS_TAG/prometheus-yoctotemp-exporter"
cat << EOF
cd /opt/prometheus-yoctotemp-exporter
@ -10,7 +10,7 @@ cd /opt/prometheus-yoctotemp-exporter
curl "$VCS_URL" -o prometheus-yoctotemp-exporter
# Install virtualenv and dependencies.
virtualenv venv
virtualenv -p python3 venv
. venv/bin/activate
pip install prometheus_client
pip install yoctopuce

View file

@ -4,6 +4,7 @@ os=$(cat "${__global:?}/explorer/os")
case "$os" in
debian|ubuntu)
__package python3-virtualenv
__package virtualenv
__package curl
;;
*)