diff --git a/entrypoint.sh b/entrypoint.sh index ca864ce..be6edbb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,6 +15,12 @@ chech_quotes(){ CONFIG_PATH=napcat/config/onebot11_$ACCOUNT.json # 容器首次启动时执行 if [ ! -f "$CONFIG_PATH" ]; then + # 安装 napcat + rarch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/) + unzip NapCat.linux.${rarch}.zip -d . + mv NapCat.linux.${rarch} napcat + chmod +x napcat/napcat.sh + if [ "$WEBUI_TOKEN" ]; then echo "{\"port\": 6099,\"token\": \"$WEBUI_TOKEN\",\"loginRate\": 3}" > napcat/config/webui.json fi