Browse Source

fix cron.d.example

Guillaume 7 years ago
parent
commit
fc2d8859c7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      cron.d.example

+ 3 - 2
cron.d.example

@@ -1,7 +1,8 @@
 # For more information see the manual pages of crontab(5) and cron(8)
 # m h  dom mon dow  user  command
 
-PATH=/usr/local/bin:/usr/bin:/bin:/path/to/fcn-toolbox
+FCNDOLIBARR=/path/to/fcn-toolbox/fcn-dolibarr
+FCNSYMPA=/path/to/fcn-toolbox/fcn-sympa
 
 # Synchronize sympa with Dolibarr, by exporting subscribers (daily)
-2  3  *  *  *  root  fcn-dolibarr get-subscribers --product "PRODUCTCODE" | sudo -u sympa fcn-sympa --import="subscribers@example.net"
+2  3  *  *  *  root  $FCNDOLIBARR get-subscribers --product "PRODUCTCODE" | sudo -u sympa $FCNSYMPA --import="subscribers@example.net"