Skip to content

Commit

Permalink
feat: Copy config file in Local adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Jun 14, 2016
1 parent bf76e18 commit 258622c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sphinx/integration/helper_adapters/local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ def remove_binlog
end

def copy_config
# no-op
return if config.config_file == config.generated_config_file
FileUtils.mkdir_p(File.dirname(config.config_file))
FileUtils.cp(config.generated_config_file, config.config_file)
end

def index
FileUtils.mkdir_p(config.searchd_file_path)

if rotate?
indexer("--rotate", index_names)
else
Expand Down

0 comments on commit 258622c

Please sign in to comment.