From aafef1e1c891c9393cb094859f512303a7fb7536 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Wed, 11 Oct 2023 23:37:33 +0000 Subject: [PATCH 1/2] chore: chmod +x on scripts --- terraform/secrets/file.sh | 0 terraform/secrets/read.sh | 0 terraform/secrets/value.sh | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 terraform/secrets/file.sh mode change 100644 => 100755 terraform/secrets/read.sh mode change 100644 => 100755 terraform/secrets/value.sh diff --git a/terraform/secrets/file.sh b/terraform/secrets/file.sh old mode 100644 new mode 100755 diff --git a/terraform/secrets/read.sh b/terraform/secrets/read.sh old mode 100644 new mode 100755 diff --git a/terraform/secrets/value.sh b/terraform/secrets/value.sh old mode 100644 new mode 100755 From 06d90296375c4f66f4376642e7f070284461c7d3 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Wed, 11 Oct 2023 23:51:19 +0000 Subject: [PATCH 2/2] feat: helper script restarts app overwrite our flag setting with the execution timestamp --- terraform/restart-app.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 terraform/restart-app.sh diff --git a/terraform/restart-app.sh b/terraform/restart-app.sh new file mode 100755 index 000000000..efe8fd5a9 --- /dev/null +++ b/terraform/restart-app.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +if [ $# -ne 1 ]; then + echo "Usage: $0 D|T|P" + exit 1 +fi + +ENV="$1" +APP="AS-CDT-PUB-VIP-CALITP-$ENV-001" +RG="RG-CDT-PUB-VIP-CALITP-$ENV-001" +NOW=$(date --utc) + +az webapp config appsettings set --name "$APP" --resource-group "$RG" --settings change_me_to_refresh_secrets="$NOW"