fix agent2
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Paolo Asperti 2021-09-13 12:39:27 +02:00
parent 17d4517198
commit ae075ea741
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 5 additions and 5 deletions

View File

@ -118,7 +118,7 @@ steps:
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
tags:
- latest
- 0.1.1
- 0.1.2
username:
from_secret: docker_username

View File

@ -2,7 +2,7 @@
"name": "Zabbix Agent 2",
"url": "https://git.asperti.com/paspo/hassio-addons",
"image": "docker.asperti.com/paspo/hassio-zabbix-agent2",
"version": "0.1.1",
"version": "0.1.2",
"slug": "zabbix-agent2",
"description": "Zabbix Agent 2 for hass.io",
"startup": "services",

View File

@ -2,7 +2,7 @@
set -e
CONFIG_PATH=/data/options.json
CUSTOM_CFG_PATH=/share/zabbix-agent
CUSTOM_CFG_PATH=/share/zabbix-agent2
SERVER=$(jq --raw-output ".server" $CONFIG_PATH)
HOSTNAME=$(jq --raw-output ".hostname" $CONFIG_PATH)
@ -17,6 +17,6 @@ ServerActive=$SERVER
Hostname=$HOSTNAME
LogType=console
Include=${CUSTOM_CFG_PATH}/*.conf
" > /etc/zabbix/zabbix_agentd.conf
" > /etc/zabbix/zabbix_agent2.conf
sudo -u zabbix zabbix_agentd -f
sudo -u zabbix zabbix_agent2 -f