Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Linux Script/configure-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ checkIfLogglyServersAccessible() {

echo "INFO: Checking if '$LOGGLY_ACCOUNT' subdomain is valid."
if [[ $LOGGLY_ACCOUNT != $INVALID_SUBDOMAIN ]]; then
if [[ $(curl --head -s --request GET $LOGGLY_ACCOUNT_URL/login | grep "200 OK\|HTTP/2 200") ]]; then
if [[ $(curl -L -s --head --request GET $LOGGLY_ACCOUNT_URL/login -w '%{http_code}' -o /dev/null) == "200" ]]; then
echo "INFO: $LOGGLY_ACCOUNT_URL is valid and reachable."
else
logMsgToConfigSysLog "ERROR" "ERROR: This is not a recognized subdomain. Please ask the account owner for the subdomain they signed up with."
Expand Down