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

switch-to-insecure-mode-if-tlsdownload-fails #97

Merged
merged 8 commits into from Jul 20, 2017

check if curl is not installed

  • Loading branch information
root
root committed Jun 30, 2017
commit 3f7db5c3c6c7cbbc9f62a0c47e6432189e2b85f1
@@ -110,6 +110,9 @@ checkLinuxLogglyCompatibility()
#set the basic variables needed by this script
setLinuxVariables

#check if curl is not installed. If yes, ask user to install it manually and run the script again.
checkIfCurlIsNotInstalled

#check if the Loggly servers are accessible. If no, ask user to check network connectivity & exit
checkIfLogglyServersAccessible

@@ -304,6 +307,15 @@ setLinuxVariables()
LOGGLY_ACCOUNT_URL=https://$LOGGLY_ACCOUNT.loggly.com
}

#check if curl is not installed
checkIfCurlIsNotInstalled()
{
if ! [ -x "$(command -v curl)" ]; then
logMsgToConfigSysLog "ERROR" "ERROR: 'Curl' is not installed on your machine, please install it manually and then run the script again.";
exit 1
fi
}

#checks if all the various endpoints used for configuring loggly are accessible
checkIfLogglyServersAccessible()
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.