fix: 修复禁用统计看板时挂载失效的问题

pull/1208/head
zhangxinhui02 2025-08-20 03:15:59 +08:00
parent 9f34a25076
commit 58930f63d2
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@ if [ -f /MaiMBot/statistics/index.html ]
then
echo "[VolumeLinker] '/MaiMBot/statistics/index.html' exists."
else
touch /MaiMBot/statistics/index.html
if [ -d /MaiMBot/statistics ]
then
touch /MaiMBot/statistics/index.html
else
echo "[VolumeLinker] Statistics volume disabled."
fi
fi
# 删除空的插件目录,准备创建软链接