Commit 1abc2c43 authored by Philipp Huebner's avatar Philipp Huebner

correct epam_bin_path.diff

parent 6d059fe3
Description: adjust path to epam binary
Adjust the default path name of the epam binary for Debian.
Author: Holger Weiss <holger@zedat.fu-berlin.de>
Author: Philipp Huebner <debalance@debian.org>
Index: erlang-p1-pam/src/epam.erl
===================================================================
--- erlang-p1-pam.orig/src/epam.erl
+++ erlang-p1-pam/src/epam.erl
@@ -142,12 +142,7 @@ code_change(_OldVsn, State, _Extra) -> {
get_bin_path() ->
case os:getenv("EJABBERD_BIN_PATH") of
false ->
- case code:priv_dir(p1_pam) of
- {error, _} ->
- filename:join(["priv", "bin"]);
- Path ->
- filename:join([Path, "bin"])
- end;
+ "/usr/lib/erlang/p1_pam/bin";
Path ->
Path
end.
@@ -81,7 +81,7 @@ acct_mgmt(Srv, User)
gen_server:call(?PROCNAME, {acct_mgmt, Srv, User}).
init([]) ->
- FileName = filename:join(get_bin_path(), "epam"),
+ FileName = "/usr/lib/erlang/p1_pam/bin/epam",
case file:read_file_info(FileName) of
{ok, Info} ->
Mode = Info#file_info.mode band 2049,
Description: adjust path to epam binary
Adjust the default path name of the epam binary for Debian.
Author: Holger Weiss <holger@zedat.fu-berlin.de>
--- a/src/epam.erl 2014-07-10 17:42:15.000000000 +0200
+++ b/src/epam.erl 2014-09-30 11:15:52.280101653 +0200
@@ -142,12 +142,7 @@
get_bin_path() ->
case os:getenv("EJABBERD_BIN_PATH") of
false ->
- case code:priv_dir(p1_pam) of
- {error, _} ->
- filename:join(["priv", "bin"]);
- Path ->
- filename:join([Path, "bin"])
- end;
+ "/usr/lib/erlang/p1_pam/bin";
Path ->
Path
end.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment