Update Odoo License exporter to depend on the DB.
This commit is contained in:
parent
2ab59719f2
commit
51130751a6
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ cat << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=e-Durable's Prometheus Odoo License Expiration exporter
|
Description=e-Durable's Prometheus Odoo License Expiration exporter
|
||||||
After=network.target
|
After=network.target
|
||||||
|
Requires=postgresql.service
|
||||||
|
After=postgresql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
@ -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/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
|
cat << EOF
|
||||||
cd /opt/prometheus-veeam-exporter
|
cd /opt/prometheus-veeam-exporter
|
||||||
|
|
Reference in a new issue