|
|
@ -75,6 +75,17 @@ namespace NzbDrone.Common.EnvironmentInfo
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (OsInfo.IsOsx)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var userAppDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify), ".config", "Radarr");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_diskProvider.FolderExists(userAppDataFolder) && !_diskProvider.FileExists(_appFolderInfo.GetConfigPath()))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_diskTransferService.MirrorFolder(userAppDataFolder, _appFolderInfo.AppDataFolder);
|
|
|
|
|
|
|
|
_diskProvider.DeleteFolder(userAppDataFolder, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var oldDbFile = Path.Combine(_appFolderInfo.AppDataFolder, "nzbdrone.db");
|
|
|
|
var oldDbFile = Path.Combine(_appFolderInfo.AppDataFolder, "nzbdrone.db");
|
|
|
|
|
|
|
|
|
|
|
|
if (_startupContext.Args.ContainsKey(StartupContext.APPDATA))
|
|
|
|
if (_startupContext.Args.ContainsKey(StartupContext.APPDATA))
|
|
|
|