merchant: stats fail-closed; full PATH (cron wiped zeros)

This commit is contained in:
Hernâni Marques 2026-07-10 14:15:20 +02:00
parent 3d43440ad8
commit 6bb48a941c
No known key found for this signature in database

View file

@ -13,6 +13,7 @@
# eaten as fieldsep and ON_ERROR_STOP becomes the *username*).
set -euo pipefail
export TZ="${TZ:-Europe/Zurich}"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${PATH:+:$PATH}"
LANDING_DIR="${LANDING_DIR:-/var/www/merchant-landing}"
OUT="$LANDING_DIR/stats.json"
RUN="$LANDING_DIR/stats-run.json"