This commit is contained in:
root
2024-08-27 10:19:16 +02:00
parent 66fe634955
commit 8d758f9fe7

View File

@@ -466,8 +466,8 @@ execute_task() {
echo $APP_TEMPLATE echo $APP_TEMPLATE
if [ "$APP_NAME" == "$DEPLOY_NAME" ]; then if [ "$APP_NAME" == "$DEPLOY_NAME" ]; then
if [ "$DEPLOY_ACTION" == "ask" ]; then if [ "$DEPLOY_ACTION" == "ask" ]; then
PAYLOAD=$(cat $APP_TEMPLATE | base64 -d) TEMPLATE=$(cat $APP_TEMPLATE | base64 -d)
JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "PAYLOAD": "'$PAYLOAD'" }' | jq -r . | base64 -w0); JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "STATUS": "0", "TEMPLATE": "'$TEMPLATE'" }' | jq -r . | base64 -w0);
elif [ "$DEPLOY_ACTION" == "deploy" ]; then elif [ "$DEPLOY_ACTION" == "deploy" ]; then
DEPLOY_PAYLOAD=$(echo "$JSON" | jq -r .PAYLOAD) DEPLOY_PAYLOAD=$(echo "$JSON" | jq -r .PAYLOAD)
deploy_additionals "$DEPLOY_NAME" "$DEPLOY_PAYLOAD" deploy_additionals "$DEPLOY_NAME" "$DEPLOY_PAYLOAD"