From 3f6205c3d539aeab10333e4b39a6f6e87c38f258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 29 Oct 2025 22:37:55 +0300 Subject: [PATCH] fix bug with reset apikey every install --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c35ad1f4..6d24abac 100644 --- a/install.sh +++ b/install.sh @@ -141,7 +141,7 @@ config_after_install() { /usr/local/x-ui/x-ui migrate - local existing_apiKey=$(/usr/local/x-ui/x-ui setting -show true | grep -oP 'apiKey: \K.*') + local existing_apiKey=$(/usr/local/x-ui/x-ui setting -show true | grep -oP 'apikey: \K.*') if [[ -z "$existing_apiKey" ]]; then local config_apiKey=$(gen_random_string 32) /usr/local/x-ui/x-ui setting -apiKey "${config_apiKey}"