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

[LOG-8159] Use CA file with public root certificates #132

Merged
merged 13 commits into from Apr 27, 2020

remove checking of gen2 environment

  • Loading branch information
ondrejrozsypal committed Apr 20, 2020
commit 45277aa5deb5a584399f593ac7af9ce3ec4f540a
@@ -366,14 +366,6 @@ checkIfLogglyServersAccessible() {
logMsgToConfigSysLog "ERROR" "ERROR: This is not a recognized subdomain. Please ask the account owner for the subdomain they signed up with. Please note that your subdomain is just the first string in your loggly account URL not the entire account name."
exit 1
fi

echo "INFO: Checking if Gen2 account."
if [ $(curl -s --head --request GET $LOGGLY_ACCOUNT_URL/apiv2/customer | grep "404 NOT FOUND" | wc -l) == 1 ]; then
logMsgToConfigSysLog "ERROR" "ERROR: This scripts need a Gen2 account. Please contact Loggly support."
exit 1
else
echo "INFO: It is a Gen2 account."
fi
}

#check if user name and password is valid
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.