From dd3e3413d904d11e3d1809c0c58c7e0c9cd3fd5e Mon Sep 17 00:00:00 2001 From: Andrew Underwood Date: Thu, 16 Nov 2023 15:37:52 -0800 Subject: [PATCH] Ensure amazon-ssm-agent is up-to-date if present --- scripts/install-worker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install-worker.sh b/scripts/install-worker.sh index 05c1b3f05..c95abce3d 100644 --- a/scripts/install-worker.sh +++ b/scripts/install-worker.sh @@ -504,7 +504,8 @@ fi ################################################################################ if yum list installed | grep amazon-ssm-agent; then - echo "amazon-ssm-agent already present - skipping install" + echo "amazon-ssm-agent already present - ensuring package is up-to-date" + sudo yum update -y amazon-ssm-agent else echo "Installing amazon-ssm-agent" if ! [[ ${ISOLATED_REGIONS} =~ $BINARY_BUCKET_REGION ]]; then