Fix __prometheus_yoctotemp_exporter on Debian buster
This commit is contained in:
parent
8136c771a9
commit
207ea23c89
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -4,6 +4,7 @@ os=$(cat "${__global:?}/explorer/os")
|
|||
case "$os" in
|
||||
debian|ubuntu)
|
||||
__package python3-virtualenv
|
||||
__package virtualenv
|
||||
__package curl
|
||||
;;
|
||||
*)
|
||||
|
|
Reference in a new issue