From 530a54635258a2e366638714ee94498d87e3d101 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 14 Aug 2025 11:28:44 +0800 Subject: [PATCH] refactor: disable upgrade from v1 to v2. --- installer/start-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/start-all.sh b/installer/start-all.sh index 1d57f135..0011e9e0 100644 --- a/installer/start-all.sh +++ b/installer/start-all.sh @@ -2,7 +2,7 @@ set -e -if [ -f "/opt/maxkb/PG_VERSION" ]; then +if [ -f "/opt/maxkb/PG_VERSION" ] || [ -f "/var/lib/postgresql/data/PG_VERSION" ]; then # 如果是v1版本一键安装的的目录则退出 echo -e "\033[1;31mFATAL ERROR: Upgrade from v1 to v2 is not supported.\033[0m" echo -e "\033[1;31mThe process will exit.\033[0m"