On line 122 of the install_cht_perfmon.sh should contain an else to handle wget for debian distros.
The redhat yum install is handled but not the debian cases.
118 if ! command_exists wget ; then
119 if command_exists yum ; then
120 echo "** Installing wget first via yum.." 2>&1 | tee -a /tmp/agent_install_log.txt
121 yum install wget
122 fi
123 fi
Should become:
118 if ! command_exists wget ; then
119 if command_exists yum ; then
120 echo " Installing wget first via yum.." 2>&1 | tee -a /tmp/agent_install_log.txt
121 yum install wget
122 else
123 echo " Installing wget first via apt-get.." 2>&1 | tee -a /tmp/agent_install_log.txt
124 apt-get install wget -y
125 fi
126 fi
On line 122 of the install_cht_perfmon.sh should contain an else to handle wget for debian distros.
The redhat yum install is handled but not the debian cases.
118 if ! command_exists wget ; then 119 if command_exists yum ; then 120 echo "** Installing wget first via yum.." 2>&1 | tee -a /tmp/agent_install_log.txt 121 yum install wget 122 fi 123 fi
Should become:
118 if ! command_exists wget ; then 119 if command_exists yum ; then 120 echo " Installing wget first via yum.." 2>&1 | tee -a /tmp/agent_install_log.txt 121 yum install wget 122 else 123 echo " Installing wget first via apt-get.." 2>&1 | tee -a /tmp/agent_install_log.txt 124 apt-get install wget -y 125 fi 126 fi
Thanks