ejabberd: fix problem with missing shell while loading a backup

This commit is contained in:
Sander van der Burg 2015-02-21 16:08:55 +00:00
parent a3a467ce77
commit 382f175f10

View File

@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
};
buildInputs = [ expat erlang zlib openssl pam ];
patchPhase = ''
sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template
sed -i \
-e "s|erl \\\|${erlang}/bin/erl \\\|" \
-e 's|EXEC_CMD=\"sh -c\"|EXEC_CMD=\"${stdenv.shell} -c\"|' \
src/ejabberdctl.template
'';
preConfigure = ''
cd src