mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修复entrypoint,修改新增任务通知
This commit is contained in:
parent
cf52721639
commit
54f03a044e
|
@ -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
|
||||
|
|
|
@ -124,9 +124,9 @@ del_cron_api() {
|
|||
code=$(echo $api | jq -r .code)
|
||||
message=$(echo $api | jq -r .message)
|
||||
if [[ $code == 200 ]]; then
|
||||
echo -e "删除成功"
|
||||
echo -e "成功"
|
||||
else
|
||||
echo -e "删除失败(${message})"
|
||||
echo -e "失败(${message})"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -108,8 +108,7 @@ del_cron() {
|
|||
done
|
||||
if [[ $ids ]]; then
|
||||
result=$(del_cron_api "$ids")
|
||||
detail="${result}\n\n${detail}"
|
||||
notify "删除失效任务通知" "$detail"
|
||||
notify "$path 删除任务${result}" "$detail"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -145,7 +144,7 @@ add_cron() {
|
|||
fi
|
||||
fi
|
||||
done
|
||||
notify "新增任务通知" "$detail"
|
||||
notify "$path 新增任务" "$detail"
|
||||
}
|
||||
|
||||
## 更新仓库
|
||||
|
|
Loading…
Reference in New Issue
Block a user