You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
214 B
Bash
13 lines
214 B
Bash
6 years ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ "${1:0:1}" = '-' ]; then
|
||
|
set -- ejabberd "$@"
|
||
|
fi
|
||
|
|
||
|
case "$1" in
|
||
|
'ejabberd') exec $HOME/bin/ejabberd foreground ;;
|
||
|
'console') exec $HOME/bin/ejabberd console ;;
|
||
|
*) exit ;;
|
||
|
esac
|