summaryrefslogtreecommitdiff
path: root/src/rabbit_prelaunch.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-26 18:30:56 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-26 18:30:56 +0100
commit2d4380afd39b24afdd9dba32b7662abce3eef548 (patch)
tree290699c2f7473a493fc722cbb81343acfa15d766 /src/rabbit_prelaunch.erl
parentf812f96de37d81db478056dab9cf2df3fbde6209 (diff)
downloadrabbitmq-server-2d4380afd39b24afdd9dba32b7662abce3eef548.tar.gz
copy instead of symlink
Diffstat (limited to 'src/rabbit_prelaunch.erl')
-rw-r--r--src/rabbit_prelaunch.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_prelaunch.erl b/src/rabbit_prelaunch.erl
index e6c7344a..0d6f3c52 100644
--- a/src/rabbit_prelaunch.erl
+++ b/src/rabbit_prelaunch.erl
@@ -169,7 +169,8 @@ prepare_plugin(#plugin{type = ez, location = Location}, PluginDestDir) ->
zip:unzip(Location, [{cwd, PluginDestDir}]);
prepare_plugin(#plugin{type = dir, name = Name, location = Location},
PluginsDestDir) ->
- file:make_symlink(Location, filename:join([PluginsDestDir, Name])).
+ rabbit_file:recursive_copy(Location,
+ filename:join([PluginsDestDir, Name])).
find_plugins(PluginDir) ->
[prepare_dir_plugin(PluginName) ||