25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Merge pull request #2158 from bowlofeggs/su-with-sh

Use /bin/sh as the explicit shell when using su in ejabberdctl.
This commit is contained in:
Christophe Romain 2017-12-13 16:04:25 +01:00 committed by GitHub
commit a65a78ebfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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