From cf298e2680ee75f6b916c91f5ceb2f88448b6ea4 Mon Sep 17 00:00:00 2001 From: Gerard Alvear Porras <55630227+Elgeryy1@users.noreply.github.com> Date: Wed, 15 Jul 2026 13:45:02 +0200 Subject: [PATCH] Docker: use double quotes for CRON_MIN examples (#9011) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Docker Quick Run / cron examples use single-quoted `-e 'CRON_MIN=1,31'`. This works on Linux/macOS shells and PowerShell, but not on Windows `cmd.exe`, which does not strip single quotes from arguments — they end up included literally in the variable, so the cron job never gets scheduled correctly. Using `-e CRON_MIN=*/20` (no quotes) works, which was the original report. Fixes #4818 * Docs: remove CRON_MIN quoting --------- Co-authored-by: Gerard Alvear --- Docker/README.md | 12 ++++++------ docs/en/admins/08_FeedUpdates.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Docker/README.md b/Docker/README.md index 01152e1b3..6d1860bcf 100644 --- a/Docker/README.md +++ b/Docker/README.md @@ -32,7 +32,7 @@ Example running FreshRSS (or scroll down to the [Docker Compose](#docker-compose docker run -d --restart unless-stopped --log-opt max-size=10m \ -p 8080:80 \ -e TZ=Europe/Paris \ - -e 'CRON_MIN=1,31' \ + -e CRON_MIN=1,31 \ -v freshrss_data:/var/www/FreshRSS/data \ -v freshrss_extensions:/var/www/FreshRSS/extensions \ --name freshrss \ @@ -142,7 +142,7 @@ docker run --rm \ -p 8080:80 \ -e FRESHRSS_ENV=development \ -e TZ=Europe/Paris \ - -e 'CRON_MIN=1,31' \ + -e CRON_MIN=1,31 \ -v $(pwd):/var/www/FreshRSS \ -v freshrss_data:/var/www/FreshRSS/data \ --name freshrss \ @@ -608,12 +608,12 @@ There are no less than 3 options. Pick a single one. Easiest, built-in solution, also used already in the examples above (but your Docker instance will have a second process in the background, without monitoring). Just pass the environment variable `CRON_MIN` to your `docker run` command, -containing a valid cron minute definition such as `'13,43'` (recommended) or `'*/20'`. +containing a valid cron minute definition such as `13,43` (recommended) or `*/20`. Not passing the `CRON_MIN` environment variable – or setting it to empty string – will disable the cron daemon. ```sh docker run ... \ - -e 'CRON_MIN=13,43' \ + -e CRON_MIN=13,43 \ --name freshrss freshrss/freshrss ``` @@ -641,7 +641,7 @@ See cron option 1 for customising the cron schedule. docker run -d --restart unless-stopped --log-opt max-size=10m \ -v freshrss_data:/var/www/FreshRSS/data \ -v freshrss_extensions:/var/www/FreshRSS/extensions \ - -e 'CRON_MIN=17,47' \ + -e CRON_MIN=17,47 \ --net freshrss-network \ --name freshrss_cron freshrss/freshrss \ cron -f @@ -667,7 +667,7 @@ docker run -d --restart unless-stopped --log-opt max-size=10m \ docker run -d --restart unless-stopped --log-opt max-size=10m \ -v freshrss_data:/var/www/FreshRSS/data \ -v freshrss_extensions:/var/www/FreshRSS/extensions \ - -e 'CRON_MIN=27,57' \ + -e CRON_MIN=27,57 \ --net freshrss-network \ --name freshrss_cron freshrss/freshrss:alpine \ crond -f -d 6 diff --git a/docs/en/admins/08_FeedUpdates.md b/docs/en/admins/08_FeedUpdates.md index 4865e0b36..db4ef2857 100644 --- a/docs/en/admins/08_FeedUpdates.md +++ b/docs/en/admins/08_FeedUpdates.md @@ -13,12 +13,12 @@ FreshRSS is updated by the `./app/actualize_script.php` script. Knowing this, we Easiest, built-in solution, also used already in the examples above (but your Docker instance will have a second process in the background, without monitoring). Just pass the environment variable `CRON_MIN` to your `docker run` command, -containing a valid cron minute definition such as `'13,43'` (recommended) or `'*/20'`. +containing a valid cron minute definition such as `13,43` (recommended) or `*/20`. Not passing the `CRON_MIN` environment variable – or setting it to empty string – will disable the cron daemon. ```sh docker run ... \ - -e 'CRON_MIN=13,43' \ + -e CRON_MIN=13,43 \ --name freshrss freshrss/freshrss ```