From 3c67c1024282674ad932ddfcf79d68a6e3543511 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Thu, 19 Mar 2020 12:03:05 +0800 Subject: [PATCH] modified: start.sh Corrected ramdisk mount path --- start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/start.sh b/start.sh index f6aa84d..c7cf328 100644 --- a/start.sh +++ b/start.sh @@ -8,16 +8,16 @@ dd if=/dev/zero of=/ramdisk/image.ext4 count=0 bs=1 seek=400M echo -e 'Create filesystem on ramdisk file' mkfs.ext4 /ramdisk/image.ext4 echo -e 'Mount the ramdisk file to /mnt/sonarr-ramdisk-mount' -mount /ramdisk/image.ext4 /mnt/db-ramdisk-mount +mount /ramdisk/image.ext4 /mnt/db-ramdisk-config echo -e 'Initial copy of the config from the remote share to the ramdisk' -cp -fvp /perm-config/*.* /mnt/db-ramdisk-mount +cp -fvp /perm-config/*.* /mnt/db-ramdisk-config echo -e 'Set up the filesystem freeze, copy, unfreeze loop' while true; do sleep 890 date - sync /mnt/db-ramdisk-mount/*.* - fsfreeze --freeze /mnt/db-ramdisk-mount + sync /mnt/db-ramdisk-config/*.* + fsfreeze --freeze /mnt/db-ramdisk-config sleep 10 - cp -fvp /mnt/db-ramdisk-mount/*.* /perm-config/ - fsfreeze --unfreeze /mnt-ramdisk-mount + cp -fvp /mnt/db-ramdisk-config/*.* /perm-config/ + fsfreeze --unfreeze /mnt-ramdisk-config done