CloudHealth / agent-install-helpers

6 stars 3 forks source link

Installer fails in ubuntu containers without wget #7

Open psyphdawg opened 4 years ago

psyphdawg commented 4 years ago

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