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
1 changed files with 1 additions and 1 deletions

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
}