Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lianghco opened this issue Dec 26, 2019 · 0 comments

Comments

@lianghco
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant