aboutsummaryrefslogtreecommitdiff
path: root/ejabberdctl.template
diff options
context:
space:
mode:
authorRandy Barlow <randy@electronsweatshop.com>2017-12-10 12:52:22 -0500
committerRandy Barlow <randy@electronsweatshop.com>2017-12-10 12:52:22 -0500
commit12d9d97baaff3bc4bd4910647f5de3378be0cf6e (patch)
tree7da91f582e3df306ae33996f23e4bbd1556e8e31 /ejabberdctl.template
parentInclude <x/> tag in presence errors related to nick change (diff)
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 <randy@electronsweatshop.com>
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-xejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 836377662..571b90b66 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -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
}