Browse Source

Fixed various typos. (#378)

pull/384/head
SoulSeekkor 7 years ago committed by Kyle Spearrin
parent
commit
976869c968
  1. 4
      src/Core/Services/Implementations/LicensingService.cs
  2. 4
      util/Setup/Context.cs
  3. 2
      util/Setup/Helpers.cs
  4. 2
      util/Setup/Program.cs

4
src/Core/Services/Implementations/LicensingService.cs

@ -69,7 +69,7 @@ namespace Bit.Core.Services @@ -69,7 +69,7 @@ namespace Bit.Core.Services
foreach(var org in enabledOrgs)
{
var license = ReadOrganiztionLicense(org);
var license = ReadOrganizationLicense(org);
if(license == null)
{
await DisableOrganizationAsync(org, null, "No license file.");
@ -221,7 +221,7 @@ namespace Bit.Core.Services @@ -221,7 +221,7 @@ namespace Bit.Core.Services
return JsonConvert.DeserializeObject<UserLicense>(data);
}
private OrganizationLicense ReadOrganiztionLicense(Organization organization)
private OrganizationLicense ReadOrganizationLicense(Organization organization)
{
var filePath = $"{_globalSettings.LicenseDirectory}/organization/{organization.Id}.json";
if(!File.Exists(filePath))

4
util/Setup/Context.cs

@ -26,7 +26,7 @@ namespace Bit.Setup @@ -26,7 +26,7 @@ namespace Bit.Setup
Console.WriteLine("No existing `config.yml` detected. Let's generate one.");
// Looks like updating from older version. Try to create config file.
var url = Helpers.GetValueFronEnvFile("global", "globalSettings__baseServiceUri__vault");
var url = Helpers.GetValueFromEnvFile("global", "globalSettings__baseServiceUri__vault");
if(!Uri.TryCreate(url, UriKind.Absolute, out var uri))
{
Console.WriteLine("Unable to determine existing installation url.");
@ -34,7 +34,7 @@ namespace Bit.Setup @@ -34,7 +34,7 @@ namespace Bit.Setup
}
Config.Url = url;
var push = Helpers.GetValueFronEnvFile("global", "globalSettings__pushRelayBaseUri");
var push = Helpers.GetValueFromEnvFile("global", "globalSettings__pushRelayBaseUri");
Config.PushNotifications = push != "REPLACE";
var composeFile = "/bitwarden/docker/docker-compose.yml";

2
util/Setup/Helpers.cs

@ -111,7 +111,7 @@ namespace Bit.Setup @@ -111,7 +111,7 @@ namespace Bit.Setup
return builder.ConnectionString;
}
public static string GetValueFronEnvFile(string envFile, string key)
public static string GetValueFromEnvFile(string envFile, string key)
{
if(!File.Exists($"/bitwarden/env/{envFile}.override.env"))
{

2
util/Setup/Program.cs

@ -146,7 +146,7 @@ namespace Bit.Setup @@ -146,7 +146,7 @@ namespace Bit.Setup
{
Console.WriteLine("Migrating database.");
var dbPass = Helpers.GetValueFronEnvFile("mssql", "SA_PASSWORD");
var dbPass = Helpers.GetValueFromEnvFile("mssql", "SA_PASSWORD");
var masterConnectionString = Helpers.MakeSqlConnectionString(
"mssql", "master", "sa", dbPass ?? string.Empty);
var vaultConnectionString = Helpers.MakeSqlConnectionString(

Loading…
Cancel
Save