From 8d758f9fe7a4b7dc2f3224b5ac5413742646f66c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Aug 2024 10:19:16 +0200 Subject: [PATCH] template --- scripts/scheduler/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index 77eb9b9..148d60e 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -466,8 +466,8 @@ execute_task() { echo $APP_TEMPLATE if [ "$APP_NAME" == "$DEPLOY_NAME" ]; then if [ "$DEPLOY_ACTION" == "ask" ]; then - PAYLOAD=$(cat $APP_TEMPLATE | base64 -d) - JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "PAYLOAD": "'$PAYLOAD'" }' | jq -r . | base64 -w0); + TEMPLATE=$(cat $APP_TEMPLATE | base64 -d) + JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "STATUS": "0", "TEMPLATE": "'$TEMPLATE'" }' | jq -r . | base64 -w0); elif [ "$DEPLOY_ACTION" == "deploy" ]; then DEPLOY_PAYLOAD=$(echo "$JSON" | jq -r .PAYLOAD) deploy_additionals "$DEPLOY_NAME" "$DEPLOY_PAYLOAD"