mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 08:33:58 -07:00
New: After an update the update page will redirect to a success or failure page, depending on the result.
Fix: Notifications will attempt to reconnect to NzbDrone after it is shutdown.
This commit is contained in:
parent
14387b0b28
commit
6e86db66c8
6 changed files with 96 additions and 11 deletions
|
@ -46,5 +46,19 @@ namespace NzbDrone.Web.Controllers
|
|||
ViewBag.Log = _diskProvider.ReadAllText(filepath).Replace(Environment.NewLine, "<br/>");
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult Post(string expectedVersion)
|
||||
{
|
||||
var model = new PostUpgradeModel();
|
||||
model.CurrentVersion = _enviromentProvider.Version;
|
||||
model.ExpectedVersion = Version.Parse(expectedVersion);
|
||||
model.Success = model.CurrentVersion >= model.ExpectedVersion;
|
||||
|
||||
if (!model.Success)
|
||||
model.LogFile = _updateProvider.UpdateLogFile().FirstOrDefault();
|
||||
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue