Compare commits

..

No commits in common. "3d4c10d6f604aa1460c76219234869ca78dbedad" and "02740e84b6971d4b71314cd30330ed174fb7a524" have entirely different histories.

2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,3 @@
# Uncomment a line below and fill in the missing values or add your own. Every line in this file will be called by build.[sh|ps1] once the patched image is built.
# docker run -d --name bitwarden -v <full-local-path>\logs:/var/log/bitwarden -v <full-local-path>\bwdata:/etc/bitwarden -p 80:8080 --env-file <full-local-path>\settings.env bitwarden-patch
# <OR>
# docker-compose -f <full-local-path>/docker-compose.yml up -d
docker run -d --name bitwarden -v <full-local-path>\logs:/var/log/bitwarden -v <full-local-path>\bwdata:/etc/bitwarden -p 80:8080 --env-file <full-local-path>\settings.env bitwarden-patch
<OR>
docker-compose -f <full-local-path>/docker-compose.yml up -d

View File

@ -438,9 +438,7 @@ internal class Program
Set("LicenseType", Enum.Parse(licenseTypeEnum, "Organization"));
Set("LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now
Set("AllowAdminAccessToAllCollectionItems", true);
Set("UseRiskInsights", true);
Set("UseOrganizationDomains", true);
Set("UseAdminSponsoredFamilies", true);
Set("Hash", Convert.ToBase64String((Byte[])type.GetMethod("ComputeHash").Invoke(license, [])));
Set("Signature", Convert.ToBase64String((Byte[])type.GetMethod("Sign").Invoke(license, [cert])));
@ -452,4 +450,4 @@ internal class Program
type.GetProperty(name)?.SetValue(license, value);
}
}
}
}