mirror of https://github.com/lidarr/Lidarr
Removed reference to Sonarr and replaced them with Lidarr
This commit is contained in:
parent
3ebbaf4eb7
commit
0d4e049225
|
@ -11,16 +11,16 @@ namespace NzbDrone.Common.Extensions
|
|||
public static class PathExtensions
|
||||
{
|
||||
private const string APP_CONFIG_FILE = "config.xml";
|
||||
private const string NZBDRONE_DB = "nzbdrone.db";
|
||||
private const string NZBDRONE_DB = "lidarr.db";
|
||||
private const string NZBDRONE_LOG_DB = "logs.db";
|
||||
private const string NLOG_CONFIG_FILE = "nlog.config";
|
||||
private const string UPDATE_CLIENT_EXE = "NzbDrone.Update.exe";
|
||||
private const string UPDATE_CLIENT_EXE = "lidarr.Update.exe";
|
||||
private const string BACKUP_FOLDER = "Backups";
|
||||
|
||||
private static readonly string UPDATE_SANDBOX_FOLDER_NAME = "nzbdrone_update" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_PACKAGE_FOLDER_NAME = "NzbDrone" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_BACKUP_FOLDER_NAME = "nzbdrone_backup" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_BACKUP_APPDATA_FOLDER_NAME = "nzbdrone_appdata_backup" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_SANDBOX_FOLDER_NAME = "lidarr_update" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_PACKAGE_FOLDER_NAME = "lidarr" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_BACKUP_FOLDER_NAME = "lidarr_backup" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_BACKUP_APPDATA_FOLDER_NAME = "lidarr_appdata_backup" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_CLIENT_FOLDER_NAME = "NzbDrone.Update" + Path.DirectorySeparatorChar;
|
||||
private static readonly string UPDATE_LOG_FOLDER_NAME = "UpdateLogs" + Path.DirectorySeparatorChar;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace NzbDrone.Common
|
|||
|
||||
public class ServiceProvider : IServiceProvider
|
||||
{
|
||||
public const string NZBDRONE_SERVICE_NAME = "NzbDrone";
|
||||
public const string NZBDRONE_SERVICE_NAME = "Lidarr";
|
||||
|
||||
private readonly IProcessProvider _processProvider;
|
||||
private readonly Logger _logger;
|
||||
|
@ -78,7 +78,7 @@ namespace NzbDrone.Common
|
|||
serviceInstaller.Context = context;
|
||||
serviceInstaller.DisplayName = serviceName;
|
||||
serviceInstaller.ServiceName = serviceName;
|
||||
serviceInstaller.Description = "NzbDrone Application Server";
|
||||
serviceInstaller.Description = "Lidarr Application Server";
|
||||
serviceInstaller.StartType = ServiceStartMode.Automatic;
|
||||
serviceInstaller.ServicesDependedOn = new[] { "EventLog", "Tcpip", "http" };
|
||||
|
||||
|
|
|
@ -178,8 +178,9 @@ namespace NzbDrone.Core.Update
|
|||
{
|
||||
var processId = _processProvider.GetCurrentProcess().Id.ToString();
|
||||
var executingApplication = _runtimeInfo.ExecutingApplication;
|
||||
|
||||
return string.Join(" ", processId, updateSandboxFolder.TrimEnd(Path.DirectorySeparatorChar).WrapInQuotes(), executingApplication.WrapInQuotes(), _startupContext.PreservedArguments);
|
||||
var args = string.Join(" ", processId, updateSandboxFolder.TrimEnd(Path.DirectorySeparatorChar).WrapInQuotes(), executingApplication.WrapInQuotes(), _startupContext.PreservedArguments);
|
||||
_logger.Info("Updater Arguments: " + args);
|
||||
return args;
|
||||
}
|
||||
|
||||
private void EnsureAppDataSafety()
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace NzbDrone.Core.Update
|
|||
|
||||
public List<UpdatePackage> GetRecentUpdatePackages()
|
||||
{
|
||||
var branch = _configFileProvider.Branch;
|
||||
var branch = "develop";//_configFileProvider.Branch;
|
||||
return _updatePackageProvider.GetRecentUpdates(branch, BuildInfo.Version);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,9 +66,9 @@ namespace NzbDrone.Update
|
|||
}
|
||||
|
||||
var startupContext = new UpdateStartupContext
|
||||
{
|
||||
ProcessId = ParseProcessId(args[0])
|
||||
};
|
||||
{
|
||||
ProcessId = ParseProcessId(args[0])
|
||||
};
|
||||
|
||||
if (OsInfo.IsNotWindows)
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ namespace NzbDrone.Update
|
|||
throw new ArgumentOutOfRangeException(nameof(arg), "Invalid process ID");
|
||||
}
|
||||
|
||||
Logger.Debug("NzbDrone process ID: {0}", id);
|
||||
Logger.Debug("Lidarr process ID: {0}", id);
|
||||
return id;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ namespace NzbDrone.Update
|
|||
{
|
||||
var assemblies = new List<string>
|
||||
{
|
||||
"NzbDrone.Update"
|
||||
"Lidarr.Update",
|
||||
"NzbDrone.Common"
|
||||
};
|
||||
|
||||
return new UpdateContainerBuilder(startupContext, assemblies).Container;
|
||||
|
|
Loading…
Reference in New Issue