Added this for the ARM build !wip

pull/1925/head
Jamie 7 years ago
parent 0fc2037ae3
commit 132c526965

@ -123,8 +123,15 @@ namespace Ombi.Schedule.Jobs.Ombi
else
{
Logger.LogDebug(LoggingEvents.Updater, "We are linux");
if (RuntimeInformation.OSDescription.Contains("arm", CompareOptions.IgnoreCase))
{
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("arm", CompareOptions.IgnoreCase));
}
else
{
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("linux", CompareOptions.IgnoreCase));
}
}
if (download == null)
{
Logger.LogDebug(LoggingEvents.Updater, "There were no downloads");
@ -206,7 +213,7 @@ namespace Ombi.Schedule.Jobs.Ombi
{
start.Password = settings.Password.ToSecureString();
}
var proc = new Process {StartInfo = start};
var proc = new Process { StartInfo = start };
proc.Start();

Loading…
Cancel
Save