Skip to content

Commit

Permalink
docker: validate the storage directory
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jan 23, 2024
1 parent 4e2f3bf commit fa266e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/docker/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ then

DIR="/mnt/scrypted-nvr"
else
if [ ! -d "$1" ]
then
echo "$1 is not a valid directory."
exit 1
fi

stopscrypted

DIR="$1"
Expand Down

0 comments on commit fa266e9

Please sign in to comment.