lib/cany/recipes/web_server.rb in cany-0.1.1 vs lib/cany/recipes/web_server.rb in cany-0.1.2

- old
+ new

@@ -1,11 +1,11 @@ module Cany module Recipes class WebServer < Recipe def binary recipe(:system).configure :service_pre_scripts, { - mkdir_run: "mkdir /var/run/#{spec.name}", - chown_run: "chown /var/run/#{spec.name}" + mkdir_run: "mkdir -p /var/run/#{spec.name}", + chown_run: "chown www-data /var/run/#{spec.name}" } install_service name, ["/usr/bin/#{spec.name}"] + launch_command, user: 'www-data', group: 'www-data' inner.binary end end