forked from github/dataease
refactor: uuidgen改为urandom #9945
This commit is contained in:
parent
63a81de598
commit
9885088c39
@ -67,7 +67,7 @@ function _check_apisix_init() {
|
|||||||
function _prepare_apisix() {
|
function _prepare_apisix() {
|
||||||
if [[ -z $DE_APISIX_KEY ]];then
|
if [[ -z $DE_APISIX_KEY ]];then
|
||||||
need_init_apisix=true
|
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
|
export DE_APISIX_KEY=$DE_APISIX_KEY
|
||||||
cd $DE_RUNNING_BASE
|
cd $DE_RUNNING_BASE
|
||||||
env | grep DE_ >.env
|
env | grep DE_ >.env
|
||||||
|
Loading…
Reference in New Issue
Block a user