修复entrypoint,修改新增任务通知

This commit is contained in:
hanhh
2021-05-28 17:14:19 +08:00
parent cf52721639
commit 54f03a044e
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ echo -e "控制面板启动成功...\n"
echo -e "======================5. 启动定时任务========================\n"
cd $dir_root
if [[ $(pm2 info schedule) ]]; then
if [[ $(pm2 info schedule 2>/dev/null) ]]; then
pm2 reload schedule
else
pm2 start $dir_root/build/schedule.js -n schedule