1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-23 05:39:39 +08:00
2024-10-22 16:36:02 +08:00

11 lines
267 B
Bash

#!/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_TYPE="pgsql"/g' ./.env
fi
else
echo ".env 文件不存在"
fi