mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Lots of fixes. Becoming more stable now. #865
This commit is contained in:
parent
1c6ddc74cb
commit
dcf97a1008
31 changed files with 1021 additions and 381 deletions
44
src/Ombi.Updater/Program.cs
Normal file
44
src/Ombi.Updater/Program.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace Ombi.Updater
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("=======================================");
|
||||
Console.WriteLine(" Starting the Ombi Updater");
|
||||
Console.WriteLine("=======================================");
|
||||
|
||||
|
||||
var options = CheckArgs(args);
|
||||
|
||||
}
|
||||
|
||||
private static StartupOptions CheckArgs(string[] args)
|
||||
{
|
||||
if(args.Length <= 0)
|
||||
{
|
||||
Console.WriteLine("No Args Provided... Exiting");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
var p = new ProcessProvider();
|
||||
var ombiProc = p.FindProcessByName("Ombi").FirstOrDefault().Id;
|
||||
|
||||
return new StartupOptions
|
||||
{
|
||||
ApplicationPath = args[0],
|
||||
OmbiProcessId = ombiProc
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class StartupOptions
|
||||
{
|
||||
public string ApplicationPath { get; set; }
|
||||
public int OmbiProcessId { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue