diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 7921edd..787f1dc 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -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 -$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 systemctl enable zabbix-proxy