Skip to content

Instantly share code, notes, and snippets.

@leehambley
Created May 19, 2009 17:44
Show Gist options
  • Save leehambley/114257 to your computer and use it in GitHub Desktop.
Save leehambley/114257 to your computer and use it in GitHub Desktop.
task :link_server_local_configuration_file_from_installations, :roles => :ui do
run <<-EOB
if [ -e "#{current_path}/installations/#{installation_name}/`hostname`.local.cfg" ];
then {
#{sudo} cp #{current_path}/installations/#{installation_name}/`hostname`.local.cfg #{deploy_to}../#{catalog_dir}/otb/local.cfg;
};
fi
EOB
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment