mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user