mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-22 08:49:39 +08:00
fix: 修复了 Gitea 版本低于 v1.21.3 时升级失败的问题
This commit is contained in:
parent
0463c03e53
commit
b2a3afeb4a
11
gitea/1.21.4/scripts/upgrade.sh
Normal file
11
gitea/1.21.4/scripts/upgrade.sh
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user