From f5ddff3cb40a6040d302d43c4ae9d6f8ef87da5d Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 17 Jun 2025 17:07:08 +0800 Subject: [PATCH] fix: fix issue with install jumpserver failed (#4147) --- jumpserver/4.10.1/scripts/init.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jumpserver/4.10.1/scripts/init.sh b/jumpserver/4.10.1/scripts/init.sh index 2053222a1..a969a0a12 100644 --- a/jumpserver/4.10.1/scripts/init.sh +++ b/jumpserver/4.10.1/scripts/init.sh @@ -3,8 +3,7 @@ ENV_FILE=".env" if [ -f "$ENV_FILE" ]; then - PANEL_DB_TYPE=$(grep '^PANEL_DB_TYPE=' "$ENV_FILE" | cut -d '=' -f 2 | tr -d '"') - + source "$ENV_FILE" if [ "$PANEL_DB_TYPE" == "postgresql" ]; then ENGINE="postgresql" elif [ "$PANEL_DB_TYPE" == "mysql" ] || [ "$PANEL_DB_TYPE" == "mariadb" ]; then