Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-06-01 13:10:06 +0300
committerChristophe Romain <christophe.romain@process-one.net>2017-06-01 13:10:06 +0300
commita576f3a6d1cc3e881df5d4e864dd7959435a9e38 (patch)
treef66cf1ec1750adc52d8c3a35ab76ebb67d139bbd /ejabberdctl.template
parent3201f8e513c260e19ff3eb1a0855d679d7d16f8f (diff)
Remove use of getopt to support simpler shells
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-xejabberdctl.template5
1 files changed, 2 insertions, 3 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 5454757d3..3fb302187 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -32,8 +32,6 @@ if [ "$EXEC_CMD" = "false" ] ; then
fi
# parse command line parameters
-ARGS=`getopt -o n:s:l:f:c:d:t --long node:,spool:,logs:,config:,ctl-config:,config-dir:,no-timeout -n ejabberdctl -- "$@"`
-eval set -- "$ARGS";
for arg; do
case $1 in
-n|--node) ERLANG_NODE_ARG=$2; shift;;
@@ -43,7 +41,8 @@ for arg; do
-c|--ctl-config) EJABBERDCTL_CONFIG_PATH=$2; shift;;
-d|--config-dir) ETC_DIR=$2; shift;;
-t|--no-timeout) NO_TIMEOUT="--no-timeout";;
- --) shift; break;;
+ --) :;;
+ *) break;;
esac
shift
done