Skip to content

Commit

Permalink
Merge pull request #2431 from chlupac/InstallFix
Browse files Browse the repository at this point in the history
Unattended installation fix
  • Loading branch information
sbwalker authored Sep 30, 2022
2 parents e40bf08 + 45515b2 commit 68ada8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Oqtane.Server/Infrastructure/DatabaseManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public Installation IsInstalled()

if (!string.IsNullOrEmpty(_config.GetConnectionString(SettingKeys.ConnectionStringKey)))
{
result.Success = true;
using (var db = GetInstallationContext())
{
if (db.Database.CanConnect())
Expand All @@ -60,6 +59,7 @@ public Installation IsInstalled()
{
// verify master database contains a Tenant table ( ie. validate schema is properly provisioned )
var provisioned = db.Tenant.Any();
result.Success = true;
}
catch (Exception ex)
{
Expand Down Expand Up @@ -715,7 +715,7 @@ private Installation MigrateSites()
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);
Expand Down

0 comments on commit 68ada8f

Please sign in to comment.