From ea5e1f01936c2a8ebf689e52a41b605902d3041d Mon Sep 17 00:00:00 2001 From: Cameron Tod <139489+cam8001@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:01:20 +1200 Subject: [PATCH] Added check for Ubuntu 22.04 LTS in resize script --- scripts/cloud9-resize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cloud9-resize.sh b/scripts/cloud9-resize.sh index f2bf1fb56..902af75d5 100755 --- a/scripts/cloud9-resize.sh +++ b/scripts/cloud9-resize.sh @@ -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.