mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-16 10:02:59 -04:00
Docker: use double quotes for CRON_MIN examples (#9011)
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 <gerard.alvear@logiqd.me>
This commit is contained in:
committed by
GitHub
parent
260f9078f7
commit
cf298e2680
@@ -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
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user