添加自动启动bot配置

This commit is contained in:
whyour
2021-05-12 12:07:25 +08:00
parent 57c1bbcae4
commit cac0f21a99
3 changed files with 13 additions and 3 deletions
+8 -1
View File
@@ -27,6 +27,13 @@ cd $dir_root
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule --watch $dir_root/build
echo -e "定时任务启动成功...\n"
if [[ $AutoStartBot == true ]]; then
echo -e "======================6. 启动bot========================\n"
cd $dir_root
ql bot
echo -e "bot启动成功...\n"
fi
echo -e "############################################################\n"
echo -e "容器启动成功..."
echo -e "\n请先访问5700端口,登录成功面板之后再执行添加定时任务..."
@@ -34,4 +41,4 @@ echo -e "############################################################\n"
crond -f
exec "$@"
exec "$@"