We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59f5621 + 5de3bac commit 3182a31Copy full SHA for 3182a31
ejabberdctl.template
@@ -132,9 +132,19 @@ set_dist_client()
132
# run command either directly or via su $INSTALLUSER
133
exec_cmd()
134
{
135
- case $EXEC_CMD in
136
- as_install_user) su -s /bin/sh -c 'exec "$0" "$@"' "$INSTALLUSER" -- "$@" ;;
137
- as_current_user) "$@" ;;
+ case $EXEC_CMD,$(uname -s) in
+ as_install_user,OpenBSD)
+ su -s /bin/sh "$INSTALLUSER" -c 'exec "$0" "$@"' "$@"
138
+ ;;
139
+ as_install_user,NetBSD)
140
+ su "$INSTALLUSER" -c 'exec "$0" "$@"' -- "$@"
141
142
+ as_install_user,*)
143
+ su -s /bin/sh -c 'exec "$0" "$@"' "$INSTALLUSER" -- "$@"
144
145
+ as_current_user,*)
146
+ "$@"
147
148
esac
149
}
150
exec_erl()
0 commit comments