Skip to content

Commit

Permalink
Added check for Ubuntu 22.04 LTS in resize script
Browse files Browse the repository at this point in the history
  • Loading branch information
cam8001 authored and bigadsoleiman committed Aug 12, 2024
1 parent c1fa5fe commit ea5e1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cloud9-resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SIZE=${2:-120}

VERSIONID=$(awk /VERSION_ID=/ /etc/os-release |cut -d \" -f 2)

if [[ "$VERSIONID" == "2023" ]]; then
if [[ "$VERSIONID" == "2023" || "$VERSIONID" == "22.04" ]]; then
# Get the METADATA INSTANCE V2 token
TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
# Get the ID of the environment host Amazon EC2 instance.
Expand Down

0 comments on commit ea5e1f0

Please sign in to comment.