Fixes Return 503 status code when in upgrade mode #6334

This commit is contained in:
Shannon
2019-10-01 17:53:41 +02:00
committed by Sebastiaan Janssen
parent 29383f37e7
commit 62ee1899ad
4 changed files with 29 additions and 0 deletions

View File

@@ -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)