fix: default storage to $HOME/nvr_data, empty in repo config

This commit is contained in:
Claus Lohmar 2026-08-06 13:55:29 +01:00
parent b5dcbe9c56
commit 1cbf03d384
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ server:
viewer_port: ":8090"
storage:
recordings_path: "/mnt/recordings"
recordings_path: ""
retention_days: 7
cleanup_interval_mins: 60

View file

@ -149,8 +149,8 @@ log "Step 1c/7: Where should recordings be stored?"
info " This is where video clips and snapshots will be saved."
info " Examples: /mnt/recordings, /home/user/nvr, /media/usb-drive"
echo ""
read -p " Storage path [/mnt/recordings]: " STORAGE_PATH
STORAGE_PATH="${STORAGE_PATH:-/mnt/recordings}"
read -p " Storage path [${HOME}/nvr_data]: " STORAGE_PATH
STORAGE_PATH="${STORAGE_PATH:-${HOME}/nvr_data}"
# Strip trailing slash.
STORAGE_PATH="${STORAGE_PATH%/}"