Skip to content

Commit

Permalink
Fix a few issues in the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-fofanov committed May 26, 2020
1 parent b1db64f commit 640a0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/unregister-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if [[ ! -z ${SSM_PARAM_NAME} ]]; then
fi

if [[ "${AUTH_TOKEN}" == "" ]] || [[ "${AUTH_TOKEN}" == "empty" ]] || [[ "${AUTH_TOKEN}" == "null" ]]; then
echo "Auth is either an empty string or a string container 'null' or 'empty' value"
echo "Auth is either an empty string or a string containing 'null' or 'empty' value"
exit 2
fi

Expand Down
2 changes: 1 addition & 1 deletion templates/awslogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ EOF

REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
sed -i -e "s/region = us-east-1/region = $REGION/g" /etc/awslogs/awscli.conf
e

INSTANCE_ID=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .instanceId)
sed -i -e "s/{InstanceId}/$INSTANCE_ID/g" /etc/awslogs/awslogs.conf

Expand Down

0 comments on commit 640a0da

Please sign in to comment.