Package installing is working
This commit is contained in:
@@ -41,31 +41,6 @@ namespace Umbraco.Web.Install
|
||||
return _installationType ?? (_installationType = IsBrandNewInstall ? InstallationType.NewInstall : InstallationType.Upgrade).Value;
|
||||
}
|
||||
|
||||
internal static void DeleteLegacyInstaller()
|
||||
{
|
||||
if (Directory.Exists(IOHelper.MapPath(SystemDirectories.Install)))
|
||||
{
|
||||
if (Directory.Exists(IOHelper.MapPath("~/app_data/temp/install_backup")))
|
||||
{
|
||||
//this means the backup already exists with files but there's no files in it, so we'll delete the backup and re-run it
|
||||
if (Directory.GetFiles(IOHelper.MapPath("~/app_data/temp/install_backup")).Any() == false)
|
||||
{
|
||||
Directory.Delete(IOHelper.MapPath("~/app_data/temp/install_backup"), true);
|
||||
Directory.Move(IOHelper.MapPath(SystemDirectories.Install), IOHelper.MapPath("~/app_data/temp/install_backup"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Directory.Move(IOHelper.MapPath(SystemDirectories.Install), IOHelper.MapPath("~/app_data/temp/install_backup"));
|
||||
}
|
||||
}
|
||||
|
||||
if (Directory.Exists(IOHelper.MapPath("~/Areas/UmbracoInstall")))
|
||||
{
|
||||
Directory.Delete(IOHelper.MapPath("~/Areas/UmbracoInstall"), true);
|
||||
}
|
||||
}
|
||||
|
||||
internal void InstallStatus(bool isCompleted, string errorMsg)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user