diff --git a/ucloud-init.start b/ucloud-init.start index 4e53b41..16ba912 100755 --- a/ucloud-init.start +++ b/ucloud-init.start @@ -73,42 +73,10 @@ setup_dns() { fi } -setup_etc_host() { - tput setaf 2; tput bold; echo "Setting up /etc/hosts"; tput sgr0; - - cat > /etc/hosts << EOF -127.0.0.1 localhost.my.domain localhost localhost.localdomain localhost -::1 localhost localhost.localdomain - -2a0a:e5c1:144:: metadata -EOF - -# metadata=$(curl -s http://[2a0a:e5c1:144::]:9000) -# host_list=$(echo "$metadata" | jq -r '.["host-list"]') -# host_list_len=$(echo "$host_list" | jq -r '. | length') - -# cat > /etc/hosts <