aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-09 19:19:14 +0200
committerGravatar GitHub <noreply@github.com> 2016-10-09 19:19:13 +0200
commitc5c3011edfb93662cf1208ff38a26a781634c998 (patch)
treedf8a9590dadf3f3404e6bb00cb1d124e78299777
parent55fce1ef14649464463bf29132c54e8d690249c9 (diff)
parent5abe8603edcd507c9f69074f6ec78ff7ccbd07e6 (diff)
Merge pull request #1296 from Alkarex/cron-ubuntu
Ubuntu example for Cron
-rw-r--r--README.fr.md9
-rw-r--r--README.md9
2 files changed, 16 insertions, 2 deletions
diff --git a/README.fr.md b/README.fr.md
index e5f24f4e2..4e2961bee 100644
--- a/README.fr.md
+++ b/README.fr.md
@@ -109,7 +109,14 @@ C’est une bonne idée d’utiliser le même utilisateur que votre serveur Web
Par exemple, pour exécuter le script toutes les heures :
```
-7 * * * * php /votre-chemin/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
+8 * * * * php /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
+```
+
+### Exemple pour Debian / Ubuntu
+Créer `/etc/cron.d/FreshRSS` avec :
+
+```
+7,37 * * * * www-data php -f /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
```
diff --git a/README.md b/README.md
index f5eb38499..01ce290ac 100644
--- a/README.md
+++ b/README.md
@@ -109,7 +109,14 @@ It’s a good idea to use the Web server user.
For example, if you want to run the script every hour:
```
-7 * * * * php /your-path/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
+9 * * * * php /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
+```
+
+### Example on Debian / Ubuntu
+Create `/etc/cron.d/FreshRSS` with:
+
+```
+6,36 * * * * www-data php -f /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
```