This commit is contained in:
2024-06-23 20:32:33 +03:00
parent 78e319afe5
commit 8403a15fa4
3 changed files with 10 additions and 2 deletions

8
zabbix-agent2/build.yaml Normal file
View File

@@ -0,0 +1,8 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base:16.1.0
amd64: ghcr.io/hassio-addons/base:16.1.0
armv7: ghcr.io/hassio-addons/base:16.1.0
codenotary:
base_image: codenotary@frenck.dev
signer: codenotary@frenck.dev

View File

@@ -20,7 +20,6 @@ host_pid: true
host_network: true host_network: true
docker_api: true docker_api: true
advanced: true advanced: true
legacy: true
map: map:
- addon_config:rw - addon_config:rw
ports: ports:

View File

@@ -9,4 +9,5 @@ if ! bashio::fs.file_exists "${ZBX_CFG_FILE}" || [ -z "$(ls -A ${ZBX_CFG_FILE})"
fi fi
# Run zabbix-agent2 in foreground # Run zabbix-agent2 in foreground
zabbix_agent2 --foreground -c /config/zabbix_agent2.conf # zabbix_agent2 --foreground -c /config/zabbix_agent2.conf
exec /etc/services.d/zabbix_agent2/run