Merge pull request #19 from Sailing74/fixoutofram

unmount tmpfs if RAM too small to prevent corruption of logdir
This commit is contained in:
azlux 2017-07-18 00:38:50 +02:00 committed by GitHub
commit 150136da42
1 changed files with 2 additions and 0 deletions

View File

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