2 Commits
0.2.1 ... 0.2.2

Author SHA1 Message Date
46c224cd9f fix bashio api access
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-06-13 11:08:21 +02:00
c2eef2b279 add Dockerfile labels
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-13 09:52:24 +02:00
5 changed files with 21 additions and 3 deletions

View File

@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
COPY rootfs / COPY rootfs /
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
LABEL \
io.hass.version="0.2.2" \
io.hass.type="addon" \
io.hass.arch="amd64"

View File

@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
COPY rootfs / COPY rootfs /
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
LABEL \
io.hass.version="0.2.2" \
io.hass.type="addon" \
io.hass.arch="armhf"

View File

@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
COPY rootfs / COPY rootfs /
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
LABEL \
io.hass.version="0.2.2" \
io.hass.type="addon" \
io.hass.arch="aarch64"

View File

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

View File

@@ -5,10 +5,13 @@
set -e set -e
CONFIG_PATH=/data/options.json
CUSTOM_CFG_PATH=/share/zabbix-agent2 CUSTOM_CFG_PATH=/share/zabbix-agent2
SERVER="$(bashio::config 'server')" SERVER_OLD=$(jq --raw-output ".server" $CONFIG_PATH)
HOSTNAME="$(bashio::config 'hostname')" SERVER="$(bashio::config 'server' $SERVER_OLD)"
HOSTNAME_OLD=$(jq --raw-output ".hostname" $CONFIG_PATH)
HOSTNAME="$(bashio::config 'hostname' $HOSTNAME_OLD)"
if [ ! -d "$CUSTOM_CFG_PATH" ] ; then if [ ! -d "$CUSTOM_CFG_PATH" ] ; then
bashio::log.info "Creating a folder for custom configuration" bashio::log.info "Creating a folder for custom configuration"