1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04: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:
Mark McDowall
2012-02-28 16:59:48 -08:00
committed by kay.one
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);
}
}
}