custom config moved to /share

This commit is contained in:
Paolo Asperti 2019-03-20 09:42:28 +01:00
parent 68f1c026b6
commit a7a27cbaf0
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
"10050/tcp": 10050 "10050/tcp": 10050
}, },
"map": [ "map": [
"config" "share"
], ],
"options": { "options": {
"server": "zabbix-server", "server": "zabbix-server",

View File

@ -2,7 +2,7 @@
set -e set -e
CONFIG_PATH=/data/options.json CONFIG_PATH=/data/options.json
CUSTOM_CFG_PATH=/data/zabbix-agent CUSTOM_CFG_PATH=/share/zabbix-agent
SERVER=$(jq --raw-output ".server" $CONFIG_PATH) SERVER=$(jq --raw-output ".server" $CONFIG_PATH)
HOSTNAME=$(jq --raw-output ".hostname" $CONFIG_PATH) HOSTNAME=$(jq --raw-output ".hostname" $CONFIG_PATH)