From 125db8090cf6619f28194c66b55af6f3b2f78e96 Mon Sep 17 00:00:00 2001 From: Kai Sforza Date: Mon, 5 Apr 2021 01:00:54 -0600 Subject: [PATCH] Don't delete $(cwd)/Jackett if it has jackett (#11479) resolves #11463 --- src/Jackett.Common/Services/ConfigurationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackett.Common/Services/ConfigurationService.cs b/src/Jackett.Common/Services/ConfigurationService.cs index d4174e866..e76c32cff 100644 --- a/src/Jackett.Common/Services/ConfigurationService.cs +++ b/src/Jackett.Common/Services/ConfigurationService.cs @@ -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); }