6
0
Fork 0

Update Odoo License exporter to depend on the DB.

This commit is contained in:
Joachim Desroches 2021-12-06 13:59:34 +01:00
parent 2ab59719f2
commit 51130751a6
Signed by untrusted user who does not match committer: jdesroches
GPG Key ID: 6778C9C29C02D691
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ cat << EOF
[Unit]
Description=e-Durable's Prometheus Odoo License Expiration exporter
After=network.target
Requires=postgresql.service
After=postgresql.service
[Service]
Type=simple

View File

@ -1,7 +1,7 @@
#!/bin/sh
VCS_TAG=$(cat "${__object:?}/parameter/version")
VCS_URL="https://code.recycled.cloud/RecycledCloud/prometheus-veeam-exporter/raw/tag/${VCS_TAG:?}/prometheus-veeam-exporter"
VCS_URL="https://code.recycled.cloud/RecycledCloud/prometheus-veeam-exporter/raw/tag/v${VCS_TAG:?}/prometheus-veeam-exporter"
cat << EOF
cd /opt/prometheus-veeam-exporter