From 23a15a15334cf31d6cf90ebac46e54a3559961a9 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 9 May 2024 12:59:36 -0700 Subject: [PATCH] docker: mount changes may need systemctl daemon-reload --- install/docker/setup-scrypted-nvr-volume.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/docker/setup-scrypted-nvr-volume.sh b/install/docker/setup-scrypted-nvr-volume.sh index c0986be7e1..cf80da691d 100644 --- a/install/docker/setup-scrypted-nvr-volume.sh +++ b/install/docker/setup-scrypted-nvr-volume.sh @@ -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" @@ -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"