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