updated check
This commit is contained in:
@@ -85,7 +85,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
cheeck before running this as it adds lines to keep comments
|
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
|
# ask for the hostname
|
||||||
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" hostname
|
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" hostname
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user