Skip to content

Commit

Permalink
proxmox: add disk
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 14, 2024
1 parent a643960 commit bd947fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install/proxmox/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
NVR_STORAGE=$1

DISK_TYPE="large"
if [ ! -z "$FAST_DISK " ]
if [ ! -z "$FAST_DISK" ]
then
DISK_TYPE="fast"
ADD_DISK="true"
fi

if [ -z "$NVR_STORAGE" ]; then
Expand Down Expand Up @@ -47,7 +48,10 @@ chmod 0777 $STORAGE

pct stop "$VMID"

sed -i '/mnt\/nvr/d' "$FILE"
if [ -z "$ADD_DISK" ]
then
sed -i '/mnt\/nvr/d' "$FILE"
fi

echo "lxc.mount.entry: $STORAGE mnt/nvr/$DISK_TYPE/$NVR_STORAGE none bind,optional,create=dir" >> "$FILE"

Expand Down

0 comments on commit bd947fb

Please sign in to comment.