mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
修改PANEL_DB_TYPE的值以兼容pg数据库 (#1418)
This commit is contained in:
parent
1304c40bea
commit
36e8fe8285
11
apps/firefly-iii/6.1.15/scripts/init.sh
Normal file
11
apps/firefly-iii/6.1.15/scripts/init.sh
Normal file
@ -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
|
11
apps/firefly-iii/6.1.15/scripts/upgrade.sh
Normal file
11
apps/firefly-iii/6.1.15/scripts/upgrade.sh
Normal file
@ -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
Block a user