mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Regression Fix (#680)
* Ensure we mount the backups directory for Docker users * Fixed a huge logic bug that deleted files in users libraries
This commit is contained in:
parent
be3036665f
commit
d5d03528d4
@ -74,9 +74,12 @@ namespace API.Services.Tasks.Scanner
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If we couldn't match, log. But don't log if the file parses as a cover image
|
// If we couldn't match, log. But don't log if the file parses as a cover image
|
||||||
if (info == null || !(Parser.Parser.IsImage(path) || Parser.Parser.IsCoverImage(path)))
|
if (info == null)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("[Scanner] Could not parse series from {Path}", path);
|
if (!(Parser.Parser.IsImage(path) && Parser.Parser.IsCoverImage(path)))
|
||||||
|
{
|
||||||
|
_logger.LogWarning("[Scanner] Could not parse series from {Path}", path);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,6 +60,20 @@ else
|
|||||||
ln -s /kavita/data/logs /kavita/logs
|
ln -s /kavita/data/logs /kavita/logs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /kavita/data/backups ]
|
||||||
|
then
|
||||||
|
if [ -d /kavita/backups ]
|
||||||
|
then
|
||||||
|
unlink /kavita/backups
|
||||||
|
ln -s /kavita/data/backups /kavita/backups
|
||||||
|
else
|
||||||
|
ln -s /kavita/data/backups /kavita/backups
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
mkdir /kavita/data/backups
|
||||||
|
ln -s /kavita/data/backups /kavita/backups
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d /kavita/data/stats ]
|
if [ -d /kavita/data/stats ]
|
||||||
then
|
then
|
||||||
if [ -d /kavita/stats ]
|
if [ -d /kavita/stats ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user