Navigation Menu

Skip to content

Commit

Permalink
Prepare config directory for http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2014
1 parent 8d11569 commit 6e2d1be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions droonga/recipes/http-server.rb
Expand Up @@ -48,6 +48,7 @@
keep_releases 10
purge_before_symlink ["log", "tmp/pids"]
create_dirs_before_symlink ["tmp"]
symlink_before_migrate "config" => "config"
symlinks "pids" => "tmp/pids",
"log" => "log"
action :deploy
Expand All @@ -62,6 +63,13 @@
group group_name
mode 0755
end

config_dir = "#{new_resource.shared_path}/config"
directory config_dir do
user user_name
group group_name
mode 0755
end
end

notifies :restart, "runit_service[#{service_name}]"
Expand Down

0 comments on commit 6e2d1be

Please sign in to comment.