updated check

This commit is contained in:
2021-01-03 14:12:32 -05:00
parent 33eae81617
commit badbefedc1

View File

@@ -85,7 +85,7 @@ fi
cheeck before running this as it adds lines to keep comments
if [ $(grep -c Hostname=Zabbix /etc/zabbix/zabbix_agentd.conf) -eq 0 ]; then
if [ $(grep -c Hostname=Zabbix /etc/zabbix/zabbix_agentd.conf) -eq 1 ]; then
# ask for the hostname
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" hostname