Skip to content

Commit d69c595

Browse files
committed
Minor adjustments in the documentation
1 parent 457fdc5 commit d69c595

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/solana/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ We will use AWS Cloud9 to execute the subsequent commands. Follow the instructio
113113

114114
3. Configure your setup
115115

116-
Create your own copy of `.env` file and edit it:
116+
Create your own copy of `.env` file and edit it to update with your AWS Account ID and Region:
117117
```bash
118118
# Make sure you are in aws-blockchain-node-runners/lib/solana
119119
cd lib/solana
@@ -236,7 +236,7 @@ The result should be like this (the actual balance might change):
236236
sudo cat /var/log/cloud-init-output.log
237237
```
238238

239-
3. How can I restart the Solana serice?
239+
3. How can I restart the Solana service?
240240

241241
``` bash
242242
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')

lib/solana/lib/assets/user-data/node.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,11 @@ sudo chmod +x /opt/syncchecker.sh
346346
(crontab -l; echo "*/1 * * * * /opt/syncchecker.sh >/tmp/syncchecker.log 2>&1") | crontab -
347347
crontab -l
348348

349-
echo "Signaling ASG lifecycle hook to complete"
350-
TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
351-
INSTANCE_ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.254/latest/meta-data/instance-id)
352-
aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name "$LIFECYCLE_HOOK_NAME" --auto-scaling-group-name "$ASG_NAME" --region $AWS_REGION
349+
if [[ "$LIFECYCLE_HOOK_NAME" != "none" ]]; then
350+
echo "Signaling ASG lifecycle hook to complete"
351+
TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
352+
INSTANCE_ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.254/latest/meta-data/instance-id)
353+
aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name "$LIFECYCLE_HOOK_NAME" --auto-scaling-group-name "$ASG_NAME" --region $AWS_REGION
354+
fi
353355

354356
echo "All Done!!"

0 commit comments

Comments
 (0)