summaryrefslogtreecommitdiff
path: root/src
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
commit796892629ad1cf3a3b832de52b57f431052de88a (patch)
tree290699c2f7473a493fc722cbb81343acfa15d766 /src
parentb769c6922e77358483ba1a967fd4979f71a933fd (diff)
downloadrabbitmq-server-git-796892629ad1cf3a3b832de52b57f431052de88a.tar.gz
copy instead of symlink
Diffstat (limited to 'src')
-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 e6c7344afe..0d6f3c5217 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) ||