Skip to content

Commit

Permalink
Merge pull request #146 from luca3m/patch-1
Browse files Browse the repository at this point in the history
Update cron docs
  • Loading branch information
djmb authored Dec 13, 2024
2 parents 439bc04 + 7b784c6 commit efcd09a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/configuration/cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ servers:
hosts:
- 192.168.0.1
cmd:
bash -c "cat config/crontab | crontab - && cron -f"
bash -c "(env && cat config/crontab) | crontab - && cron -f"
```
This assumes that the Cron settings are stored in `config/crontab`.
This assumes that the Cron settings are stored in `config/crontab`. Cron does not automatically propagate environment variables, the example above copies them into the crontab.

0 comments on commit efcd09a

Please sign in to comment.