From 0653fc9e5a03470dd8c4567b7fb00751dc59f07d Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Tue, 23 Jan 2024 14:22:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Umami=20=E5=A2=9E=E5=8A=A0=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/umami/2.8.0/scripts/upgrade.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/umami/2.8.0/scripts/upgrade.sh 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