Sposta storage video su disco dedicato e completa ops/SMTP in produzione.
Recordings e Garage usano bind mount su /media/videos; aggiunge ntfy self-hosted, notifiche critical+warning, SMTP Aruba SSL/465 e fix cron replay. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,9 +8,14 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.prod.yml}"
|
||||
ENV_FILE="${ENV_FILE:-${ROOT}/.env}"
|
||||
GARAGE_CONTAINER="${GARAGE_CONTAINER:-}"
|
||||
VIDEOS_ROOT="${MATCHLIVETV_VIDEOS_ROOT:-/media/videos/matchlivetv}"
|
||||
|
||||
if [ -z "$CAPACITY" ]; then
|
||||
avail="$(df -BG "${ROOT}" 2>/dev/null | awk 'NR==2 {print $4}' | tr -d 'G' || echo 0)"
|
||||
capacity_df="${VIDEOS_ROOT}"
|
||||
if [ ! -d "$capacity_df" ]; then
|
||||
capacity_df="${ROOT}"
|
||||
fi
|
||||
avail="$(df -BG "${capacity_df}" 2>/dev/null | awk 'NR==2 {print $4}' | tr -d 'G' || echo 0)"
|
||||
if [ "$avail" -lt 1 ]; then
|
||||
avail="$(df -BG / 2>/dev/null | awk 'NR==2 {print $4}' | tr -d 'G')"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user