modified: start.sh
Trying to get the /config to mount the subPaths
This commit is contained in:
parent
fa19940335
commit
3f8078758c
4
start.sh
4
start.sh
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user