summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-09 19:13:43 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-09 19:13:43 +0200
commit39cd93e8bab7122558511994e8920eea1ac804a4 (patch)
tree3e71b6cf8fbc3e33ef0df079b0a6744d4f2fc971
parent55fce1ef14649464463bf29132c54e8d690249c9 (diff)
Ubuntu example for Cron
https://github.com/FreshRSS/FreshRSS/issues/1180#issuecomment-252475962
-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..e96bf4239 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 /votre-chemin/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
```