Don't delete $(cwd)/Jackett if it has jackett (#11479) resolves #11463

This commit is contained in:
Kai Sforza
2021-04-05 01:00:54 -06:00
committed by GitHub
parent 63474d42bb
commit 125db8090c

View File

@@ -91,7 +91,7 @@ namespace Jackett.Common.Services
{
// In cases where the app data folder is the same as "$(cwd)/Jackett" we don't need to perform a migration
var fullConfigPath = Path.GetFullPath("Jackett");
if (GetAppDataFolder() != fullConfigPath)
if (GetAppDataFolder() != fullConfigPath && ! File.Exists(Path.Combine(fullConfigPath, "jackett")))
{
PerformMigration(fullConfigPath);
}