From a30f59d04ff23df04c27d6552c9ace8af212e3de Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 15 Apr 2021 19:55:25 +0200 Subject: [PATCH] Copy some code from ejabberd's ejabberdctl.template This code is copied from ejabberd's upstream ejabberdctl.template, even if useless, to try to have a file as close as possible. --- ecs/bin/ejabberdctl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ecs/bin/ejabberdctl b/ecs/bin/ejabberdctl index 199b4d3..7dca5b3 100755 --- a/ecs/bin/ejabberdctl +++ b/ecs/bin/ejabberdctl @@ -150,6 +150,14 @@ exec_iex() # usage debugwarning() { + if [ "$OSTYPE" != "cygwin" ] && [ "$OSTYPE" != "win32" ] ; then + if [ "a$TERM" = "a" ] || [ "$TERM" = "dumb" ] ; then + echo "Terminal type not supported." + echo "You may have to set the TERM environment variable to fix this." + exit 8 + fi + fi + if [ "$EJABBERD_BYPASS_WARNINGS" != "true" ] ; then echo "--------------------------------------------------------------------" echo ""