fix: 修复了 Firefly III 选择 PostgreSQL 数据库时安装失败的问题。

This commit is contained in:
wanghe-fit2cloud 2024-05-14 18:53:57 +08:00
parent 634ad87791
commit 374300776a
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ 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
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_TYPE="pgsql"/g' ./.env
fi
else
echo ".env 文件不存在"

View File

@ -4,7 +4,7 @@ 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
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_TYPE="pgsql"/g' ./.env
fi
else
echo ".env 文件不存在"