fix: default storage to $HOME/nvr_data, empty in repo config
This commit is contained in:
parent
b5dcbe9c56
commit
1cbf03d384
2 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ server:
|
|||
viewer_port: ":8090"
|
||||
|
||||
storage:
|
||||
recordings_path: "/mnt/recordings"
|
||||
recordings_path: ""
|
||||
retention_days: 7
|
||||
cleanup_interval_mins: 60
|
||||
|
||||
|
|
|
|||
4
setup.sh
4
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%/}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue