aboutsummaryrefslogtreecommitdiffstats
path: root/config/schedule.rb
diff options
context:
space:
mode:
authorAlban Peignier2016-08-31 11:03:09 +0200
committerAlban Peignier2016-08-31 11:03:09 +0200
commit62ae1074e7536dd170b0214ed339b7ad9323967d (patch)
tree388e4938b844f31152df04c732d5ca3b41694235 /config/schedule.rb
parent98debbeaac00dbf1aa2c752521d5878776c540dc (diff)
downloadchouette-core-62ae1074e7536dd170b0214ed339b7ad9323967d.tar.bz2
Add additionnal_path in whenever variables to complete crontab PATH. Refs #1524
Diffstat (limited to 'config/schedule.rb')
-rw-r--r--config/schedule.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/schedule.rb b/config/schedule.rb
index 6adbc0219..258076d1b 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -19,6 +19,11 @@
# Learn more: http://github.com/javan/whenever
+set :additionnal_path, ''
+unless additionnal_path.empty?
+ env :PATH, "#{additionnal_path}:#{ENV['PATH']}"
+end
+
every :hour do
rake "organisations:sync"
rake "users:sync"
@@ -26,4 +31,4 @@ end
every :day do
rake "codifligne:sync"
-end \ No newline at end of file
+end