From 1c9fe4253baece94271a0fd244d3067dec238e7e Mon Sep 17 00:00:00 2001 From: Genva Date: Tue, 17 Jun 2025 09:05:59 +0200 Subject: [PATCH] Changed comment --- build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 36a2ead..0003551 100755 --- a/build.sh +++ b/build.sh @@ -13,12 +13,10 @@ echo "Building BitBetter for BitWarden version $BW_VERSION" rm -rf $DIR/server git clone --branch "v${BW_VERSION}" --depth 1 https://github.com/bitwarden/server.git $DIR/server -# Optional, replacing the thumbprint in code has no actual effect +# Replace certificate file and thumbprint old_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':') new_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':') sed -i -e "s/$old_thumbprint/$new_thumbprint/g" $DIR/server/src/Core/Services/Implementations/LicensingService.cs - -# Replace certificate file cp $DIR/.keys/cert.cert $DIR/server/src/Core/licensing.cer docker build --no-cache --label com.bitwarden.product="bitbetter" $DIR/server -f $DIR/server/src/Api/Dockerfile -t bitbetter/api