From 99cadf7652bbc16b8daf190ff3a410096ba025ed Mon Sep 17 00:00:00 2001
From: mhsanaei <ho3ein.sanaei@gmail.com>
Date: Wed, 16 Oct 2024 16:26:42 +0200
Subject: [PATCH] Update install.sh

---
 install.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh
index ad0dead0..80a0943c 100644
--- a/install.sh
+++ b/install.sh
@@ -152,8 +152,9 @@ config_after_install() {
             echo -e "${green}New WebBasePath: ${config_webBasePath}${plain}"
         else
             echo -e "${green}Username, Password, and WebBasePath are already set. Exiting...${plain}"
-            return 0
         fi
+        /usr/local/x-ui/x-ui migrate
+        return 0
     fi
 
     read -p "Would you like to customize the Panel Port settings? (If not, random settings will be applied) [y/n]: " config_confirm