From 3b2c8255cccbdced3dbd5b81a8feb977f2179fbd Mon Sep 17 00:00:00 2001 From: zhiyongli Date: Wed, 20 Dec 2023 22:00:43 +0800 Subject: [PATCH] move sleep after extension check --- .../container-apps-internal-registry-demo/startup-script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builders/container-apps-internal-registry-demo/startup-script.sh b/builders/container-apps-internal-registry-demo/startup-script.sh index 3f2bb3cfe3..07aa7c74e2 100644 --- a/builders/container-apps-internal-registry-demo/startup-script.sh +++ b/builders/container-apps-internal-registry-demo/startup-script.sh @@ -34,8 +34,6 @@ while [[ ! -f "$temp_app_source_path" || ! "$(file $temp_app_source_path)" =~ "c do echo "Waiting for app source to be uploaded. Please upload the app source to the endpoint specified in the Build resource's 'uploadEndpoint' property." curl -H "$auth_header" -H "$version_header" -H "$date_header" -X GET "$file_upload_endpoint" -o "$temp_app_source_path" -D "$temp_app_header_path" -s - sleep 5 - if [[ -f "$temp_app_header_path" ]]; then file_extension=$(grep -i x-ms-meta-FileExtension "$temp_app_header_path" | cut -d ' ' -f2) # Check if the original file extension is .jar, .war, .zip or .tar.gz @@ -46,6 +44,7 @@ do break fi fi + sleep 5 done # Extract app code to CNB_APP_DIR directory.