3.11.6 #1

Merged
jonny merged 11 commits from 3.11.6 into master 2020-07-21 11:42:44 +00:00
Showing only changes of commit 3f8078758c - Show all commits

View File

@ -10,13 +10,13 @@ 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/sonarr-ramdisk-mount mount /ramdisk/image.ext4 /mnt/sonarr-ramdisk-mount
echo -e 'Copy the config from the remote share to the ramdisk' echo -e 'Copy the config from the remote share to the ramdisk'
cp -fvp /config/*.* /mnt/sonarr-ramdisk-mount cp -fvp /sonarr-config/*.* /mnt/sonarr-ramdisk-mount
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
sync /mnt/sonarr-ramdisk-mount/*.* sync /mnt/sonarr-ramdisk-mount/*.*
fsfreeze --freeze /mnt/sonarr-ramdisk-mount fsfreeze --freeze /mnt/sonarr-ramdisk-mount
sleep 10 sleep 10
cp -fvp /mnt/sonarr-ramdisk-mount/*.* /config/ cp -fvp /mnt/sonarr-ramdisk-mount/*.* /sonarr-config/
fsfreeze --unfreeze /mnt/sonarr-ramdisk-mount fsfreeze --unfreeze /mnt/sonarr-ramdisk-mount
done done