Skip to content

Commit

Permalink
proxmox: dir sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushik Dutta authored and Koushik Dutta committed Sep 14, 2024
1 parent 1440b38 commit bae12ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/proxmox/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ if [ ! -f "$FILE" ]; then
exit 1
fi

if [ ! -d "/mnt/pve/nvr-storage/mounts/$NVR_STORAGE" ]
then
echo "Error: /mnt/pve/nvr-storage/mounts/$NVR_STORAGE not found."
echo "The Proxmox Directory Storage must be created using the UI prior to running this script."
exit 1
fi

# Remove all lines containing "mnt/nvr"
sed -i '/mnt\/nvr/d' "$FILE"

Expand Down

0 comments on commit bae12ee

Please sign in to comment.