fix: fix issue with install jumpserver failed (#4147)
This commit is contained in:
parent
f9f1e8699f
commit
f5ddff3cb4
|
|
@ -3,8 +3,7 @@
|
||||||
ENV_FILE=".env"
|
ENV_FILE=".env"
|
||||||
|
|
||||||
if [ -f "$ENV_FILE" ]; then
|
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
|
if [ "$PANEL_DB_TYPE" == "postgresql" ]; then
|
||||||
ENGINE="postgresql"
|
ENGINE="postgresql"
|
||||||
elif [ "$PANEL_DB_TYPE" == "mysql" ] || [ "$PANEL_DB_TYPE" == "mariadb" ]; then
|
elif [ "$PANEL_DB_TYPE" == "mysql" ] || [ "$PANEL_DB_TYPE" == "mariadb" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue