mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
定时任务判断fix
修复定时更新https证书任务判断逻辑
This commit is contained in:
parent
0ecc20472a
commit
e081fbd92b
2
cmd
2
cmd
@ -328,7 +328,7 @@ https_auto() {
|
||||
fi
|
||||
new_job="* 6 * * * docker run -it --rm -v $(pwd):/work nginx:alpine sh /work/bin/https renew"
|
||||
current_crontab=$(crontab -l 2>/dev/null)
|
||||
if echo "$current_crontab" | grep -v "https renew"; then
|
||||
if ! echo "$current_crontab" | grep -v "https renew"; then
|
||||
echo "任务已存在,无需添加。"
|
||||
else
|
||||
crontab -l |{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user