feat: Umami 增加升级脚本

This commit is contained in:
wanghe-fit2cloud 2024-01-23 14:22:30 +08:00
parent ec7bda71bd
commit 0653fc9e5a

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [[ -f ./.env ]]; then
if grep -q "PANEL_DB_TYPE" ./.env; then
echo "PANEL_DB_TYPE 已存在"
else
echo 'PANEL_DB_TYPE="mysql"' >> ./.env
fi
else
echo ".env 文件不存在"
fi