Tonne of things
This commit is contained in:
@@ -36,6 +36,10 @@ fi
|
||||
|
||||
log "Received trigger: action=${ACTION}"
|
||||
|
||||
# Extract triggeredBy and write marker file for the API to read post-restart
|
||||
TRIGGERED_BY="$(echo "$TRIGGER_CONTENT" | grep -o '"triggeredBy"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | sed 's/.*"triggeredBy"[[:space:]]*:[[:space:]]*"//' | sed 's/".*//' || true)"
|
||||
echo "${TRIGGERED_BY:-manual}" > "${UPGRADE_DIR}/triggered-by.txt"
|
||||
|
||||
# Remove trigger immediately to prevent re-execution
|
||||
rm -f "$TRIGGER_FILE"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user