mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
feat: Umami 增加升级脚本
This commit is contained in:
parent
ec7bda71bd
commit
0653fc9e5a
11
apps/umami/2.8.0/scripts/upgrade.sh
Normal file
11
apps/umami/2.8.0/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…
Reference in New Issue
Block a user