mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复entrypoint,修改新增任务通知
This commit is contained in:
parent
cf52721639
commit
54f03a044e
|
@ -28,7 +28,7 @@ echo -e "控制面板启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================5. 启动定时任务========================\n"
|
echo -e "======================5. 启动定时任务========================\n"
|
||||||
cd $dir_root
|
cd $dir_root
|
||||||
if [[ $(pm2 info schedule) ]]; then
|
if [[ $(pm2 info schedule 2>/dev/null) ]]; then
|
||||||
pm2 reload schedule
|
pm2 reload schedule
|
||||||
else
|
else
|
||||||
pm2 start $dir_root/build/schedule.js -n schedule
|
pm2 start $dir_root/build/schedule.js -n schedule
|
||||||
|
|
|
@ -124,9 +124,9 @@ del_cron_api() {
|
||||||
code=$(echo $api | jq -r .code)
|
code=$(echo $api | jq -r .code)
|
||||||
message=$(echo $api | jq -r .message)
|
message=$(echo $api | jq -r .message)
|
||||||
if [[ $code == 200 ]]; then
|
if [[ $code == 200 ]]; then
|
||||||
echo -e "删除成功"
|
echo -e "成功"
|
||||||
else
|
else
|
||||||
echo -e "删除失败(${message})"
|
echo -e "失败(${message})"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,7 @@ del_cron() {
|
||||||
done
|
done
|
||||||
if [[ $ids ]]; then
|
if [[ $ids ]]; then
|
||||||
result=$(del_cron_api "$ids")
|
result=$(del_cron_api "$ids")
|
||||||
detail="${result}\n\n${detail}"
|
notify "$path 删除任务${result}" "$detail"
|
||||||
notify "删除失效任务通知" "$detail"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +144,7 @@ add_cron() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
notify "新增任务通知" "$detail"
|
notify "$path 新增任务" "$detail"
|
||||||
}
|
}
|
||||||
|
|
||||||
## 更新仓库
|
## 更新仓库
|
||||||
|
|
Loading…
Reference in New Issue
Block a user