diff --git a/installer.sh b/installer.sh index 5d364930e..b001e44ab 100755 --- a/installer.sh +++ b/installer.sh @@ -29,6 +29,23 @@ readonly installer_code_file="/root/installer.tar" readonly installer_tmp_dir="/tmp/installer" readonly cert_folder="/tmp/certificates" +# check for fqdn in /ets/hosts +echo "[INFO] checking for hostname entry" +readonly hostentry_found=$(grep "${fqdn}" /etc/hosts || true) +if [[ -z $hostentry_found ]]; then + echo "[WARNING] No entry for ${fqdn} found in /etc/hosts" + echo "Adding an entry ..." + + cat >> /etc/hosts <