modified: start.sh
Corrected ramdisk mount path
This commit is contained in:
parent
32d5885669
commit
3c67c10242
12
start.sh
12
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'
|
echo -e 'Create filesystem on ramdisk file'
|
||||||
mkfs.ext4 /ramdisk/image.ext4
|
mkfs.ext4 /ramdisk/image.ext4
|
||||||
echo -e 'Mount the ramdisk file to /mnt/sonarr-ramdisk-mount'
|
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'
|
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'
|
echo -e 'Set up the filesystem freeze, copy, unfreeze loop'
|
||||||
while true; do
|
while true; do
|
||||||
sleep 890
|
sleep 890
|
||||||
date
|
date
|
||||||
sync /mnt/db-ramdisk-mount/*.*
|
sync /mnt/db-ramdisk-config/*.*
|
||||||
fsfreeze --freeze /mnt/db-ramdisk-mount
|
fsfreeze --freeze /mnt/db-ramdisk-config
|
||||||
sleep 10
|
sleep 10
|
||||||
cp -fvp /mnt/db-ramdisk-mount/*.* /perm-config/
|
cp -fvp /mnt/db-ramdisk-config/*.* /perm-config/
|
||||||
fsfreeze --unfreeze /mnt-ramdisk-mount
|
fsfreeze --unfreeze /mnt-ramdisk-config
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user