Add /usr/local/bin to PATH when delivering messages for svgo
authorTom Hughes <tom@compton.nu>
Thu, 17 Sep 2015 14:57:24 +0000 (15:57 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 17 Sep 2015 14:57:24 +0000 (15:57 +0100)
cookbooks/exim/templates/default/exim4.conf.erb
roles/web-frontend.rb

index f81fe50..e73ad85 100644 (file)
@@ -703,6 +703,7 @@ noreply:
   driver = pipe
   command = <%= details[:command] %>
   home_directory = <%= details[:home_directory] %>
+  path = <%= details[:path] || "/bin:/usr/bin" %>
   return_output
 <% else -%>
   driver = appendfile
index e228e0e..974ef3b 100644 (file)
@@ -34,7 +34,8 @@ default_attributes(
         :command => "/srv/www.openstreetmap.org/rails/script/deliver-message $local_part",
         :user => "rails",
         :group => "rails",
-        :home_directory => "/srv/www.openstreetmap.org/rails"
+        :home_directory => "/srv/www.openstreetmap.org/rails",
+        :path => "/bin:/usr/bin:/usr/local/bin"
       }
     }
   }