From ec7bda71bdd1f0b291d9dda7766775b4f7a654b4 Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Tue, 23 Jan 2024 14:20:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=20Gitea=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BD=8E=E4=BA=8E=20v1.21.3=20=E6=97=B6?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/gitea/1.21.4/scripts/upgrade.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/gitea/1.21.4/scripts/upgrade.sh diff --git a/apps/gitea/1.21.4/scripts/upgrade.sh b/apps/gitea/1.21.4/scripts/upgrade.sh new file mode 100644 index 000000000..2cf758d28 --- /dev/null +++ b/apps/gitea/1.21.4/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