From 382f175f10b1b056d26defb58f80ef5ff7d1846f Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Sat, 21 Feb 2015 16:08:55 +0000 Subject: [PATCH] ejabberd: fix problem with missing shell while loading a backup --- pkgs/servers/xmpp/ejabberd/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/xmpp/ejabberd/default.nix b/pkgs/servers/xmpp/ejabberd/default.nix index 5868125c97f..3a77c5cd15c 100644 --- a/pkgs/servers/xmpp/ejabberd/default.nix +++ b/pkgs/servers/xmpp/ejabberd/default.nix @@ -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