You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"INFO: Checking if '$LOGGLY_ACCOUNT' subdomain is valid."
353
-
if [ $(curl --head -s --request GET $LOGGLY_ACCOUNT_URL/login | grep "200 OK\|HTTP/2 200"| wc -l) ] >0;then
354
-
echo"INFO: $LOGGLY_ACCOUNT_URL is valid and reachable."
356
+
if [[ $LOGGLY_ACCOUNT!=$INVALID_SUBDOMAIN ]];then
357
+
if [[ $(curl --head -s --request GET $LOGGLY_ACCOUNT_URL/login | grep "200 OK\|HTTP/2 200") ]];then
358
+
echo"INFO: $LOGGLY_ACCOUNT_URL is valid and reachable."
359
+
else
360
+
logMsgToConfigSysLog "ERROR""ERROR: This is not a recognized subdomain. Please ask the account owner for the subdomain they signed up with."
361
+
exit 1
362
+
fi
355
363
else
356
-
logMsgToConfigSysLog "ERROR""ERROR: This is not a recognized subdomain. Please ask the account owner for the subdomain they signed up with."
364
+
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."
0 commit comments