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