Update: Plugin Framework & Update

This commit is contained in:
Gary Sharp
2013-02-19 16:10:27 +11:00
parent 8f769809c2
commit e589c5edb4
14 changed files with 855 additions and 149 deletions
+7 -2
View File
@@ -21,7 +21,7 @@ namespace Disco.Web.Controllers
{
if (!Request.IsLocal && !InitialConfigController.ServerIsCoreSKU.Value)
{
filterContext.Result = new HttpStatusCodeResult(System.Net.HttpStatusCode.ServiceUnavailable, "Initial Configuration of Disco is only allowed via a local connection");
filterContext.Result = new HttpStatusCodeResult(System.Net.HttpStatusCode.ServiceUnavailable, "Initialization Configuration of Disco is only allowed via a local connection");
}
base.OnActionExecuting(filterContext);
}
@@ -30,7 +30,12 @@ namespace Disco.Web.Controllers
{
var status = UpdatePluginsAfterDiscoUpdateTask.UpdateDiscoPlugins(true);
return RedirectToAction(MVC.Config.Logging.TaskStatus(status.SessionId));
var model = new Models.Update.IndexModel()
{
SessionId = status.SessionId
};
return View(model);
}
}
}