Use /bin/sh as the explicit shell when using su in ejabberdctl.

Some distributions (such as Fedora) use /sbin/nologin as the login
shell for the ejabberd user. The newer version of ejabberdctl uses
su to perform the command if the INSTALLUSER invokes the script.
This commit adjusts the call to su so that it passes /bin/sh as
the shell to use so that it will work correctly when the ejabberd
user's shell is set to nologin.

Signed-off-by: Randy Barlow <>
This commit is contained in:
Randy Barlow 2017-12-10 12:52:22 -05:00
parent ae66c17ec0
commit 12d9d97baa
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ export ERL_LIBS
case $EXEC_CMD in
as_install_user) su -c '"$0" "$@"' "$INSTALLUSER" -- "$@" ;;
as_install_user) su -s /bin/sh -c '"$0" "$@"' "$INSTALLUSER" -- "$@" ;;
as_current_user) "$@" ;;