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
|
#!/bin/sh
|
||||||
|
|
||||||
VCS_TAG=$(cat "$__object/parameter/version")
|
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
|
cat << EOF
|
||||||
cd /opt/prometheus-yoctotemp-exporter
|
cd /opt/prometheus-yoctotemp-exporter
|
||||||
|
@ -10,7 +10,7 @@ cd /opt/prometheus-yoctotemp-exporter
|
||||||
curl "$VCS_URL" -o prometheus-yoctotemp-exporter
|
curl "$VCS_URL" -o prometheus-yoctotemp-exporter
|
||||||
|
|
||||||
# Install virtualenv and dependencies.
|
# Install virtualenv and dependencies.
|
||||||
virtualenv venv
|
virtualenv -p python3 venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install prometheus_client
|
pip install prometheus_client
|
||||||
pip install yoctopuce
|
pip install yoctopuce
|
||||||
|
|
|
@ -4,6 +4,7 @@ os=$(cat "${__global:?}/explorer/os")
|
||||||
case "$os" in
|
case "$os" in
|
||||||
debian|ubuntu)
|
debian|ubuntu)
|
||||||
__package python3-virtualenv
|
__package python3-virtualenv
|
||||||
|
__package virtualenv
|
||||||
__package curl
|
__package curl
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Reference in a new issue