Skip to content

Commit a277805

Browse files
committed
ehnance token parsing
1 parent 6ee7467 commit a277805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linux Script/configure-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ getAuthToken() {
384384
if [ "$LOGGLY_AUTH_TOKEN" = "" ]; then
385385
logMsgToConfigSysLog "INFO" "INFO: Authentication token not provided. Trying to retrieve it from $LOGGLY_ACCOUNT_URL account."
386386
#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")
387+
tokenstr=$(curl -s -u $LOGGLY_USERNAME:$LOGGLY_PASSWORD $LOGGLY_ACCOUNT_URL/apiv2/customer | grep -A1 "\"tokens\"" | grep -v "tokens")
388388

389389
#get the string from index 0 to last occurence of "
390390
tokenstr=${tokenstr%\"*}

0 commit comments

Comments
 (0)