1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

unmount tmpfs if RAM too small to prevent corruption of logdir

This commit is contained in:
Sailing74 2017-07-14 08:51:22 +02:00
parent bd1b669ed9
commit da1950989f

View File

@ -27,6 +27,8 @@ syncFromDisk () {
if [ ! -z `du -sh -t $SIZE $HDD_LOG | cut -f1` ]; then if [ ! -z `du -sh -t $SIZE $HDD_LOG | cut -f1` ]; then
echo "ERROR: RAM disk too small. Can't sync." echo "ERROR: RAM disk too small. Can't sync."
umount -l $RAM_LOG
umount -l $HDD_LOG
exit 1 exit 1
fi fi