diff --git a/apps/umami/2.8.0/scripts/upgrade.sh b/apps/umami/2.8.0/scripts/upgrade.sh new file mode 100644 index 00000000..2cf758d2 --- /dev/null +++ b/apps/umami/2.8.0/scripts/upgrade.sh @@ -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 \ No newline at end of file