From d98226b123e565d7c7b1465d130091746d0695c4 Mon Sep 17 00:00:00 2001 From: bebstein-pass <95220086+bebstein-pass@users.noreply.github.com> Date: Wed, 5 Feb 2025 17:14:33 +0100 Subject: [PATCH] (BSR) docs(certificate): standardize password environment variable (#7638) --- doc/installation/Android.md | 2 +- scripts/install_certificate_java.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/installation/Android.md b/doc/installation/Android.md index 84231357d11..4e3a58524e7 100644 --- a/doc/installation/Android.md +++ b/doc/installation/Android.md @@ -30,7 +30,7 @@ Then open the Android Virtual Devices Manager and select (or create) a Virtual D In the `.env.local` file, add ```sh -KEYTOOL_PASSWORD=THE_PASSWORD # replace THE_PASSWORD with the one from Keeper search for "Android keytool password" +SECRET_KEYTOOL_PASSWORD=THE_PASSWORD # replace THE_PASSWORD with the one from Keeper search for "Android keytool password" ``` ```sh diff --git a/scripts/install_certificate_java.sh b/scripts/install_certificate_java.sh index caa61497d05..4a2d19f09d1 100755 --- a/scripts/install_certificate_java.sh +++ b/scripts/install_certificate_java.sh @@ -12,12 +12,12 @@ remove_certificate_bundle_safe() { } has_certificate() { - echo "${KEYTOOL_PASSWORD}" | + echo "${SECRET_KEYTOOL_PASSWORD}" | sudo keytool -cacerts -list -alias "mykey" } remove_certificate() { - echo "${KEYTOOL_PASSWORD}" | + echo "${SECRET_KEYTOOL_PASSWORD}" | sudo keytool -delete -cacerts -alias "mykey" >/dev/null } @@ -30,7 +30,7 @@ remove_certificate_safe() { } set_password_and_accept_trusting_the_certificate() { - echo "${KEYTOOL_PASSWORD}" + echo "${SECRET_KEYTOOL_PASSWORD}" echo "oui" }