From 01c27739f00fcf7ead42eb21be1c7566ff16a36d Mon Sep 17 00:00:00 2001 From: Antoine Pultier <45740+fungiboletus@users.noreply.github.com> Date: Tue, 6 Jul 2021 10:58:49 +0200 Subject: [PATCH] No HTTP call to a third-party to generate a random UUID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - uuidgen is by default on Mac. - On Linux, /proc/sys/kernel/random/uuid contains a random uuid This may **not** support people using this hem chart through Bash on Windows, I havn't tested. But these people, if they exist, should use WSL or WSL2 instead. --- couchdb/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchdb/README.md b/couchdb/README.md index ca3716b..577960a 100644 --- a/couchdb/README.md +++ b/couchdb/README.md @@ -17,7 +17,7 @@ storage volumes to each Pod in the Deployment. $ helm repo add couchdb https://apache.github.io/couchdb-helm $ helm install couchdb/couchdb \ --set allowAdminParty=true \ - --set couchdbConfig.couchdb.uuid=$(curl https://www.uuidgenerator.net/api/version4 2>/dev/null | tr -d -) + --set couchdbConfig.couchdb.uuid=$(( uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid ) | tr "[A-Z]" "[a-z]") ``` ## Prerequisites