mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Merge 5de3bacf35
into 19b7106124
This commit is contained in:
commit
5e1d073247
1 changed files with 13 additions and 3 deletions
|
@ -129,9 +129,19 @@ set_dist_client()
|
||||||
# run command either directly or via su $INSTALLUSER
|
# run command either directly or via su $INSTALLUSER
|
||||||
exec_cmd()
|
exec_cmd()
|
||||||
{
|
{
|
||||||
case $EXEC_CMD in
|
case $EXEC_CMD,$(uname -s) in
|
||||||
as_install_user) su -s /bin/sh -c 'exec "$0" "$@"' "$INSTALLUSER" -- "$@" ;;
|
as_install_user,OpenBSD)
|
||||||
as_current_user) "$@" ;;
|
su -s /bin/sh "$INSTALLUSER" -c 'exec "$0" "$@"' "$@"
|
||||||
|
;;
|
||||||
|
as_install_user,NetBSD)
|
||||||
|
su "$INSTALLUSER" -c 'exec "$0" "$@"' -- "$@"
|
||||||
|
;;
|
||||||
|
as_install_user,*)
|
||||||
|
su -s /bin/sh -c 'exec "$0" "$@"' "$INSTALLUSER" -- "$@"
|
||||||
|
;;
|
||||||
|
as_current_user,*)
|
||||||
|
"$@"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
exec_erl()
|
exec_erl()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue