From 1cbf03d38481852c94173ce7a13750da259ac996 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Thu, 6 Aug 2026 13:55:29 +0100 Subject: [PATCH] fix: default storage to $HOME/nvr_data, empty in repo config --- config.yaml | 2 +- setup.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.yaml b/config.yaml index d4119f2..e17ae45 100644 --- a/config.yaml +++ b/config.yaml @@ -7,7 +7,7 @@ server: viewer_port: ":8090" storage: - recordings_path: "/mnt/recordings" + recordings_path: "" retention_days: 7 cleanup_interval_mins: 60 diff --git a/setup.sh b/setup.sh index ddf3505..f462b15 100755 --- a/setup.sh +++ b/setup.sh @@ -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%/}"