Skip to content

Commit

Permalink
Don't set host from Zabbix config file if socket was specified manually
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhq committed Mar 15, 2019
1 parent de7d90a commit 323937b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zabbix-dump
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fi
# Options specified via command line override defaults or those from zabbix_server.conf (if any)
[ ! -z "$ODBHOST" ] && DBHOST=$ODBHOST
[ ! -z "$ODBPORT" ] && DBPORT=$ODBPORT
[ ! -z "$ODBSOCKET" ] && DBSOCKET=$ODBSOCKET
[ ! -z "$ODBSOCKET" ] && DBSOCKET=$ODBSOCKET && DBHOST=""
[ ! -z "$ODBNAME" ] && DBNAME=$ODBNAME
[ ! -z "$ODBUSER" ] && DBUSER=$ODBUSER
[ ! -z "$ODBPASS" ] && DBPASS=$ODBPASS
Expand Down

0 comments on commit 323937b

Please sign in to comment.