修改PANEL_DB_TYPE的值以兼容pg数据库 (#1418)
This commit is contained in:
parent
595c322458
commit
d2ecaef7fb
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q 'PANEL_DB_TYPE="mysql"' ./.env; then
|
||||
echo "PANEL_DB_TYPE 为 Mysql 数据库, 不作修改"
|
||||
else
|
||||
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_HOST="pgsql"/g' ./.env
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q 'PANEL_DB_TYPE="mysql"' ./.env; then
|
||||
echo "PANEL_DB_TYPE 为 Mysql 数据库, 不作修改"
|
||||
else
|
||||
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_HOST="pgsql"/g' ./.env
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
||||
Loading…
Reference in New Issue