From 45515b2c062c4e0b09bf5dd7621b1cf31fccc0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Vesely=CC=81?= Date: Sat, 24 Sep 2022 15:35:09 +0200 Subject: [PATCH] Unattented instalation fix --- Oqtane.Server/Infrastructure/DatabaseManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Oqtane.Server/Infrastructure/DatabaseManager.cs b/Oqtane.Server/Infrastructure/DatabaseManager.cs index 8c217265..e0694417 100644 --- a/Oqtane.Server/Infrastructure/DatabaseManager.cs +++ b/Oqtane.Server/Infrastructure/DatabaseManager.cs @@ -51,7 +51,6 @@ namespace Oqtane.Infrastructure if (!string.IsNullOrEmpty(_config.GetConnectionString(SettingKeys.ConnectionStringKey))) { - result.Success = true; using (var db = GetInstallationContext()) { if (db.Database.CanConnect()) @@ -60,6 +59,7 @@ namespace Oqtane.Infrastructure { // verify master database contains a Tenant table ( ie. validate schema is properly provisioned ) var provisioned = db.Tenant.Any(); + result.Success = true; } catch (Exception ex) { @@ -715,7 +715,7 @@ namespace Oqtane.Infrastructure foreach (var upgrade in siteupgrades) { var aliasname = upgrade.Key.Split(' ').First(); - // in the future this equality condition could use RegEx to allow for more flexible matching + // in the future this equality condition could use RegEx to allow for more flexible matching if (string.Equals(alias.Name, aliasname, StringComparison.OrdinalIgnoreCase)) { tenantManager.SetTenant(alias.TenantId);