From 9885088c39f4580f907c9eb72771145074edfe6e Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Wed, 5 Jun 2024 11:19:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20uuidgen=E6=94=B9=E4=B8=BAurandom=20?= =?UTF-8?q?#9945?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/dectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/dectl b/installer/dectl index e822d921e6..4fe811cf43 100644 --- a/installer/dectl +++ b/installer/dectl @@ -67,7 +67,7 @@ function _check_apisix_init() { function _prepare_apisix() { if [[ -z $DE_APISIX_KEY ]];then need_init_apisix=true - DE_APISIX_KEY=$(uuidgen | sed 's/-//g') + DE_APISIX_KEY=$(head -c 32 /dev/urandom | base64) export DE_APISIX_KEY=$DE_APISIX_KEY cd $DE_RUNNING_BASE env | grep DE_ >.env