diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-02 11:22:43 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-02 11:22:43 +0000 |
| commit | c3672b65a7a6ba70d2643c464a055bf379b61c85 (patch) | |
| tree | 68941a7d04f6d2111e3a39a0fdbb18a9d1fee253 /src | |
| parent | 537d0ff87dcb935e20e887573fd445e105240128 (diff) | |
| parent | 0bd30c535063a2121e82eb7b26b2ecc1d042baa4 (diff) | |
| download | rabbitmq-server-git-c3672b65a7a6ba70d2643c464a055bf379b61c85.tar.gz | |
One head of default is better than two
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_plugin_activator.erl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/rabbit_plugin_activator.erl b/src/rabbit_plugin_activator.erl index 88300ab448..ef81ddf23a 100644 --- a/src/rabbit_plugin_activator.erl +++ b/src/rabbit_plugin_activator.erl @@ -33,8 +33,6 @@ -export([start/0, stop/0]). --define(DefaultPluginDir, "plugins"). --define(DefaultUnpackedPluginDir, "priv/plugins"). -define(BaseApps, [rabbit]). %%---------------------------------------------------------------------------- @@ -56,8 +54,8 @@ start() -> application:load(rabbit), %% Determine our various directories - PluginDir = get_env(plugins_dir, ?DefaultPluginDir), - UnpackedPluginDir = get_env(plugins_expand_dir, ?DefaultUnpackedPluginDir), + {ok, PluginDir} = application:get_env(rabbit, plugins_dir), + {ok, UnpackedPluginDir} = application:get_env(rabbit, plugins_expand_dir), RootName = UnpackedPluginDir ++ "/rabbit", @@ -142,12 +140,6 @@ start() -> stop() -> ok. -get_env(Key, Default) -> - case application:get_env(rabbit, Key) of - {ok, V} -> V; - _ -> Default - end. - determine_version(App) -> application:load(App), {ok, Vsn} = application:get_key(App, vsn), |
