Commit 34cd706d authored by Philipp Huebner's avatar Philipp Huebner

adjust location and path for epam binary (Closes: #762198)

parent 98368f9c
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>
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.
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.
epam_bin_path.diff
......@@ -21,7 +21,7 @@ override_dh_auto_configure:
override_dh_auto_install:
dh_install priv/bin/* /usr/lib/erlang/bin/
dh_install priv/bin/* /usr/lib/erlang/p1_pam/bin/
dh_auto_install
......
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