Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 版本能配置定时更新的时间? #440

Open
sztuxp opened this issue Oct 23, 2024 · 7 comments · May be fixed by #449
Open

docker 版本能配置定时更新的时间? #440

sztuxp opened this issue Oct 23, 2024 · 7 comments · May be fixed by #449
Labels
enhancement New feature or request

Comments

@sztuxp
Copy link

sztuxp commented Oct 23, 2024

docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?

@Guovin Guovin added the enhancement New feature or request label Oct 23, 2024
@Guovin
Copy link
Owner

Guovin commented Oct 23, 2024

docker目前默认每日6点与18点自动执行,暂时无法自定义

@sztuxp
Copy link
Author

sztuxp commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

1 similar comment
@sztuxp
Copy link
Author

sztuxp commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

@Guovin
Copy link
Owner

Guovin commented Oct 23, 2024

这么快回复,感谢!另外在VPS上跑的话,这个时间是vps时间吗?

是的

chavan-arvind added a commit to chavan-arvind/TV that referenced this issue Oct 24, 2024
Fixes Guovin#440

Add configuration for scheduled updates in Docker version.

* **Dockerfile**
  - Add `UPDATE_CRON` environment variable to allow custom cron schedules.
  - Modify the `RUN` command to use the `UPDATE_CRON` variable for setting the cron jobs.

* **config/config.ini**
  - Add a new setting `update_cron` for specifying the cron schedule.

* **docs/tutorial.md**
  - Update the documentation to explain how to configure the update time or interval for the Docker version.

* **docs/tutorial_en.md**
  - Update the documentation to explain how to configure the update time or interval for the Docker version.
@chavan-arvind chavan-arvind linked a pull request Oct 24, 2024 that will close this issue
@dawnsummit
Copy link

docker目前默认每日6点与18点自动执行,暂时无法自定义

我试了一下,自动更新都没有正确执行。会提示8000端口被占用然后就结束了。

@Guovin
Copy link
Owner

Guovin commented Oct 30, 2024

docker目前默认每日6点与18点自动执行,暂时无法自定义

我试了一下,自动更新都没有正确执行。会提示8000端口被占用然后就结束了。

更新是否成功以文件结果为准,不能只看容器日志。

@BG5HGY
Copy link

BG5HGY commented Nov 26, 2024

docker 版本能配置定时更新的时间或间隔吗?还是自动6点和18点定时更新?

没验证过,但猜测进Docker修改文件“/container/iptv/var/spool/cron/crontabs/root”并执行“/etc/init.d/cron restart”说不定可以,如有需求不妨试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants