Skip to content

Commit

Permalink
docker: mount changes may need systemctl daemon-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
koush authored May 9, 2024
1 parent 01dd480 commit 23a15a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install/docker/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function removescryptedfstab() {
grep -v "scrypted-nvr" /etc/fstab > /tmp/fstab && cp /tmp/fstab /etc/fstab
# ensure newline
sed -i -e '$a\' /etc/fstab
systemctl daemon-reload
}

BLOCK_DEVICE="/dev/$1"
Expand Down Expand Up @@ -119,6 +120,7 @@ then
mkdir -p /mnt/scrypted-nvr
echo "PARTLABEL=scrypted-nvr /mnt/scrypted-nvr ext4 defaults,nofail 0 0" >> /etc/fstab
mount -a
systemctl daemon-reload
set +e

DIR="/mnt/scrypted-nvr"
Expand Down

0 comments on commit 23a15a1

Please sign in to comment.