Commit forgotten patch to prometheus-yoctotemp-exporter
This commit is contained in:
parent
7af78934f0
commit
e22c50a5b2
1 changed files with 15 additions and 13 deletions
|
@ -4,6 +4,7 @@ VCS_TAG=$(cat "$__object/parameter/version")
|
|||
VCS_URL="https://code.recycled.cloud/RecycledCloud/prometheus-yoctotemp-exporter/raw/tag/$VCS_TAG/prometheus-yoctotemp-exporter"
|
||||
|
||||
cat << EOF
|
||||
if [ ! -d /opt/prometheus-yoctotemp-exporter ]; then
|
||||
cd /opt/prometheus-yoctotemp-exporter
|
||||
|
||||
# Fetch sources.
|
||||
|
@ -17,4 +18,5 @@ pip install yoctopuce
|
|||
|
||||
# Start service
|
||||
service prometheus-yoctotemp-exporter start
|
||||
fi
|
||||
EOF
|
||||
|
|
Reference in a new issue