Skip to content

Commit 530a546

Browse files
refactor: disable upgrade from v1 to v2.
1 parent 194b684 commit 530a546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/start-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
if [ -f "/opt/maxkb/PG_VERSION" ]; then
5+
if [ -f "/opt/maxkb/PG_VERSION" ] || [ -f "/var/lib/postgresql/data/PG_VERSION" ]; then
66
# 如果是v1版本一键安装的的目录则退出
77
echo -e "\033[1;31mFATAL ERROR: Upgrade from v1 to v2 is not supported.\033[0m"
88
echo -e "\033[1;31mThe process will exit.\033[0m"

0 commit comments

Comments
 (0)