Adapt odoo-license-exporter for debian.
This commit is contained in:
parent
4fc8f7758d
commit
8a2186b907
2 changed files with 7 additions and 3 deletions
|
@ -10,10 +10,10 @@ cd /opt/prometheus-odoo-license-exporter
|
|||
curl "$VCS_URL" -o prometheus-odoo-license-exporter
|
||||
|
||||
# Install virtualenv and dependencies
|
||||
virtualenv venv
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
|
||||
pip3 install prometheus_client psycopg2 datetime
|
||||
pip3 install prometheus_client psycopg2-binary datetime
|
||||
|
||||
# Start service
|
||||
systemctl restart prometheus-odoo-license-exporter
|
||||
|
|
|
@ -5,9 +5,13 @@ os=$(cat "${__global:?}/explorer/os")
|
|||
mkdir -p "${__object:?}/files"
|
||||
case "$os" in
|
||||
debian|ubuntu)
|
||||
__package python3-virtualenv
|
||||
__package python3-venv
|
||||
__package curl
|
||||
|
||||
# Required for psycopg2
|
||||
__package libpq-dev
|
||||
__package build-essential
|
||||
__package libpython3-dev
|
||||
|
||||
"${__type:?}/files/prometheus-odoo-license-exporter.service.sh" \
|
||||
> "${__object:?}/files/prometheus-odoo-license-exporter.service"
|
||||
|
|
Reference in a new issue