Do not restart after install, instead stop and restart the runtime. Also signin the admin user after install.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Umbraco.Cms.Web.BackOffice.Install;
|
||||
|
||||
namespace Umbraco.Extensions
|
||||
{
|
||||
public static class BackofficeLinkGeneratorExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the URL for the installer
|
||||
/// </summary>
|
||||
public static string GetInstallerUrl(this LinkGenerator linkGenerator)
|
||||
=> linkGenerator.GetPathByAction(nameof(InstallController.Index), ControllerExtensions.GetControllerName<InstallController>(), new { area = Cms.Core.Constants.Web.Mvc.InstallArea });
|
||||
|
||||
/// <summary>
|
||||
/// Returns the URL for the installer api
|
||||
/// </summary>
|
||||
public static string GetInstallerApiUrl(this LinkGenerator linkGenerator)
|
||||
=> linkGenerator.GetPathByAction(
|
||||
nameof(InstallApiController.GetSetup),
|
||||
ControllerExtensions.GetControllerName<InstallApiController>(),
|
||||
new { area = Cms.Core.Constants.Web.Mvc.InstallArea }).TrimEnd(nameof(InstallApiController.GetSetup));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user