Skip to content

Intranet machines do not need to check for the latest version of the code #2

@lianghco

Description

@lianghco

If the Intranet machine server is not networked, the test cannot be performed。Intranet machines do not need to check for the latest version of the code

Modify the code at the end of the tpch.sh

for j in $(curl google.com 2>&1 | grep "Couldn't resolve host"); do
	internet_down="1"
done

if [ "$internet_down" -eq "0" ]; then
	yum_installs
	repo_init
	script_check
else
   echo "############################################################################"
   echo	"Couldn't resolve host,The local code is not checked for the latest version."
   echo "############################################################################"
   echo ""
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions