diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 21ec53f..a64c912 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -196,8 +196,10 @@ run_deploy() { } if [[ "${1:-}" == "--run" ]]; then - run_deploy >>"$LOG_FILE" 2>&1 - exit 0 + mkdir -p "$(dirname "$LOG_FILE")" + # Stream deploy output both to file and journald (tag: bssapp-deploy). + run_deploy 2>&1 | tee -a "$LOG_FILE" >(logger -t bssapp-deploy -p user.info) + exit ${PIPESTATUS[0]} fi # Fully detach webhook-triggered process to avoid EPIPE from closed request sockets.