1
0
mirror of https://github.com/bitwarden/server synced 2025-12-10 13:23:27 +00:00

stub install

This commit is contained in:
Kyle Spearrin
2019-03-15 09:28:39 -04:00
parent feea862872
commit 0f7963f79c
3 changed files with 21 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ namespace Bit.Setup
{
_context.WebVersion = _context.Parameters["webv"];
}
if(_context.Parameters.ContainsKey("stub"))
{
_context.Stub = _context.Parameters["stub"] == "true" ||
_context.Parameters["stub"] == "1";
}
Helpers.WriteLine(_context);
@@ -69,7 +74,12 @@ namespace Bit.Setup
_context.Install.Domain = _context.Parameters["domain"].ToLowerInvariant();
}
if(!ValidateInstallation())
if(_context.Stub)
{
_context.Install.InstallationId = Guid.Empty;
_context.Install.InstallationKey = "SECRET_INSTALLATION_KEY";
}
else if(!ValidateInstallation())
{
return;
}