mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
Fix var
This commit is contained in:
parent
84173e46a8
commit
774217a55c
@ -33,7 +33,7 @@ cat /usr/share/zabbix-sql-scripts/postgresql/proxy.sql | sudo -u zabbix psql ${Z
|
|||||||
|
|
||||||
echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_proxy.conf
|
echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_proxy.conf
|
||||||
|
|
||||||
$srv=$(grep -E "^Server" /etc/zabbix/zabbix_proxy.conf)
|
srv=$(grep -E "^Server" /etc/zabbix/zabbix_proxy.conf)
|
||||||
sed -i "s/$srv/Server=${ZBX_ADDR}/g" "s/# ListenPort=/ListenPort=/g" "s/Hostname=Zabbix proxy/# Hostname=${LXC_HOSTNAME}.${LXC_DOMAIN}/g" /etc/zabbix/zabbix_proxy.conf
|
sed -i "s/$srv/Server=${ZBX_ADDR}/g" "s/# ListenPort=/ListenPort=/g" "s/Hostname=Zabbix proxy/# Hostname=${LXC_HOSTNAME}.${LXC_DOMAIN}/g" /etc/zabbix/zabbix_proxy.conf
|
||||||
|
|
||||||
systemctl enable zabbix-proxy
|
systemctl enable zabbix-proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user