We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee7467 commit a277805Copy full SHA for a277805
Linux Script/configure-linux.sh
@@ -384,7 +384,7 @@ getAuthToken() {
384
if [ "$LOGGLY_AUTH_TOKEN" = "" ]; then
385
logMsgToConfigSysLog "INFO" "INFO: Authentication token not provided. Trying to retrieve it from $LOGGLY_ACCOUNT_URL account."
386
#get authentication token if user has not provided one
387
- tokenstr=$(curl -s -u $LOGGLY_USERNAME:$LOGGLY_PASSWORD $LOGGLY_ACCOUNT_URL/apiv2/customer | grep -A1 "token" | grep -v "token")
+ tokenstr=$(curl -s -u $LOGGLY_USERNAME:$LOGGLY_PASSWORD $LOGGLY_ACCOUNT_URL/apiv2/customer | grep -A1 "\"tokens\"" | grep -v "tokens")
388
389
#get the string from index 0 to last occurence of "
390
tokenstr=${tokenstr%\"*}
0 commit comments