iptv-api
iptv-api copied to clipboard
Add configurable update time for Docker version
Fixes #440
Add configuration for scheduled updates in Docker version.
-
Dockerfile
- Add
UPDATE_CRONenvironment variable to allow custom cron schedules. - Modify the
RUNcommand to use theUPDATE_CRONvariable for setting the cron jobs.
- Add
-
config/config.ini
- Add a new setting
update_cronfor specifying the cron schedule.
- Add a new setting
-
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.
Well done, you've done what I planned to do. The docker container startup also seems to be missing code to read the update_cron configuration in config.ini. I am also optimizing docker related code recently, and I will merge it with your code after I improve it, thank you.
Please push your code to the dev branch, thanks
This implementation is no longer available for the current version