Skip to content

Commit

Permalink
Merge branch 'main' of github.com:koush/scrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 14, 2024
2 parents d89a8c6 + 8e47bbb commit c96b473
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install/proxmox/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ STORAGE="$STORAGE/mounts/scrypted-nvr"
mkdir -p $STORAGE/.nvr
chmod 0777 $STORAGE

echo "Stopping Scrypted..."
pct stop "$VMID"

echo "Modifying $FILE."

if [ -z "$ADD_DISK" ]
then
echo "Removing previous $DISK_TYPE lxc.mount.entry."
sed -i "/mnt\/nvr\/$DISK_TYPE/d" "$FILE"
fi

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

echo "$FILE modified successfully. Starting Scrypted..."
echo "Starting Scrypted..."
pct start $VMID

0 comments on commit c96b473

Please sign in to comment.