refactor: 调整volume-linker.sh的输出格式
This commit is contained in:
@@ -5,14 +5,14 @@
|
|||||||
# /MaiMBot/statistics是统计数据的实际挂载路径
|
# /MaiMBot/statistics是统计数据的实际挂载路径
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
echo "[VolumeLinker]Preparing volume..."
|
echo "[VolumeLinker] Preparing volume..."
|
||||||
|
|
||||||
# 初次启动,在存储卷中检查并创建关键文件和目录
|
# 初次启动,在存储卷中检查并创建关键文件和目录
|
||||||
mkdir -p /MaiMBot/data/plugins
|
mkdir -p /MaiMBot/data/plugins
|
||||||
mkdir -p /MaiMBot/data/logs
|
mkdir -p /MaiMBot/data/logs
|
||||||
if [ ! -d "/MaiMBot/statistics" ]
|
if [ ! -d "/MaiMBot/statistics" ]
|
||||||
then
|
then
|
||||||
echo "[VolumeLinker] Statistics volume disabled."
|
echo "[VolumeLinker] Statistics volume disabled."
|
||||||
else
|
else
|
||||||
touch /MaiMBot/statistics/index.html
|
touch /MaiMBot/statistics/index.html
|
||||||
fi
|
fi
|
||||||
@@ -29,5 +29,5 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 启动麦麦
|
# 启动麦麦
|
||||||
echo "[VolumeLinker]Starting MaiBot..."
|
echo "[VolumeLinker] Starting MaiBot..."
|
||||||
exec python bot.py
|
exec python bot.py
|
||||||
|
|||||||
Reference in New Issue
Block a user