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

This commit is contained in:
Hernâni Marques 2026-07-09 20:40:57 +02:00
parent be05666737
commit 4c6f82eb67
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*). # eaten as fieldsep and ON_ERROR_STOP becomes the *username*).
set -euo pipefail set -euo pipefail
export TZ="${TZ:-Europe/Zurich}" 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}" LANDING_DIR="${LANDING_DIR:-/var/www/merchant-landing}"
OUT="$LANDING_DIR/stats.json" OUT="$LANDING_DIR/stats.json"
RUN="$LANDING_DIR/stats-run.json" RUN="$LANDING_DIR/stats-run.json"