diff options
author | Randy Barlow <randy@electronsweatshop.com> | 2017-12-10 20:52:22 +0300 |
---|---|---|
committer | Randy Barlow <randy@electronsweatshop.com> | 2017-12-10 20:52:22 +0300 |
commit | 12d9d97baaff3bc4bd4910647f5de3378be0cf6e (patch) | |
tree | 7da91f582e3df306ae33996f23e4bbd1556e8e31 /ejabberdctl.template | |
parent | ae66c17ec006ef854365996541c76d8424ed6c07 (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-x | ejabberdctl.template | 2 |
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 } |