3.11.6 #1

Closed
jonny wants to merge 10 commits from 3.11.6 into master
Showing only changes of commit 32d5885669 - Show all commits

View File

@ -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 $RAMDISK_MOUNT_DIR mount /ramdisk/image.ext4 /mnt/db-ramdisk-mount
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 $APP_CONFIG_DIR/*.* $RAMDISK_MOUNT_DIR cp -fvp /perm-config/*.* /mnt/db-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
date date
sync $RAMDISK_MOUNT_DIR/*.* sync /mnt/db-ramdisk-mount/*.*
fsfreeze --freeze $RAMDISK_MOUNT_DIR fsfreeze --freeze /mnt/db-ramdisk-mount
sleep 10 sleep 10
cp -fvp $RAMDISK_MOUNT_DIR/*.* $APP_CONFIG_DIR/ cp -fvp /mnt/db-ramdisk-mount/*.* /perm-config/
fsfreeze --unfreeze $RAMDISK_MOUNT_DIR fsfreeze --unfreeze /mnt-ramdisk-mount
done done