mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Rename More Sonarr References
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
@@ -8,7 +8,7 @@ namespace ServiceInstall
|
||||
{
|
||||
public static class ServiceHelper
|
||||
{
|
||||
private static string NzbDroneExe => Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName, "Lidarr.Console.exe");
|
||||
private static string LidarrExe => Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName, "Lidarr.Console.exe");
|
||||
|
||||
private static bool IsAnAdministrator()
|
||||
{
|
||||
@@ -18,7 +18,7 @@ namespace ServiceInstall
|
||||
|
||||
public static void Run(string arg)
|
||||
{
|
||||
if (!File.Exists(NzbDroneExe))
|
||||
if (!File.Exists(LidarrExe))
|
||||
{
|
||||
Console.WriteLine("Unable to find Lidarr.Console.exe in the current directory.");
|
||||
return;
|
||||
@@ -32,7 +32,7 @@ namespace ServiceInstall
|
||||
|
||||
var startInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = NzbDroneExe,
|
||||
FileName = LidarrExe,
|
||||
Arguments = arg,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
@@ -59,4 +59,4 @@ namespace ServiceInstall
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user