1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-25 09:20:37 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}