appstore-1panel/apps/umami/2.10.2/scripts/upgrade.sh

11 lines
207 B
Bash
Raw Normal View History

2024-01-23 14:22:30 +08:00
#!/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