Fixes Return 503 status code when in upgrade mode #6334
This commit is contained in:
committed by
Sebastiaan Janssen
parent
29383f37e7
commit
62ee1899ad
@@ -6,6 +6,7 @@ using Umbraco.Core.IO;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Migrations.Install;
|
||||
using Umbraco.Web.JavaScript;
|
||||
using Umbraco.Web.Mvc;
|
||||
using Umbraco.Web.Security;
|
||||
|
||||
namespace Umbraco.Web.Install.Controllers
|
||||
@@ -35,6 +36,7 @@ namespace Umbraco.Web.Install.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[StatusCodeResult(System.Net.HttpStatusCode.ServiceUnavailable)]
|
||||
public ActionResult Index()
|
||||
{
|
||||
if (_runtime.Level == RuntimeLevel.Run)
|
||||
|
||||
Reference in New Issue
Block a user