diff options
author | Mathias Ertl <mati@fsinf.at> | 2014-07-11 12:34:52 +0200 |
---|---|---|
committer | Mathias Ertl <mati@fsinf.at> | 2014-07-11 12:34:52 +0200 |
commit | 86a666712259c27161d0d5a98227cbfdc0065cef (patch) | |
tree | 7039a1d41caca6eec022bcef95e72459b98bf162 /ejabberdctl.template | |
parent | Re-generate the HTML documents (diff) |
Move warnings inside check for , use variable for path
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-x | ejabberdctl.template | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index f3ae9d86..7a1f5ee9 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -184,23 +184,24 @@ start() # attach to server debug() { - echo "--------------------------------------------------------------------" - echo "" - echo "IMPORTANT: we will attempt to attach an INTERACTIVE shell" - echo "to an already running ejabberd node." - echo "If an ERROR is printed, it means the connection was not successful." - echo "You can interact with the ejabberd node if you know how to use it." - echo "Please be extremely cautious with your actions," - echo "and exit immediately if you are not completely sure." - echo "" - echo "To detach this shell from ejabberd, press:" - echo " control+c, control+c" - echo "" - echo "--------------------------------------------------------------------" - echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:" - echo " EJABBERD_BYPASS_WARNINGS=true" - echo "Press any key to continue" if [ "$EJABBERD_BYPASS_WARNINGS" != "true" ] ; then + echo "--------------------------------------------------------------------" + echo "" + echo "IMPORTANT: we will attempt to attach an INTERACTIVE shell" + echo "to an already running ejabberd node." + echo "If an ERROR is printed, it means the connection was not successful." + echo "You can interact with the ejabberd node if you know how to use it." + echo "Please be extremely cautious with your actions," + echo "and exit immediately if you are not completely sure." + echo "" + echo "To detach this shell from ejabberd, press:" + echo " control+c, control+c" + echo "" + echo "--------------------------------------------------------------------" + echo "To bypass permanently this warning, add to $EJABBERDCTL_CONFIG_PATH the line:" + echo " EJABBERD_BYPASS_WARNINGS=true" + echo "Press any key to continue" + read foo fi echo "" @@ -217,22 +218,23 @@ debug() live() { check_start - echo "--------------------------------------------------------------------" - echo "" - echo "IMPORTANT: ejabberd is going to start in LIVE (interactive) mode." - echo "All log messages will be shown in the command shell." - echo "You can interact with the ejabberd node if you know how to use it." - echo "Please be extremely cautious with your actions," - echo "and exit immediately if you are not completely sure." - echo "" - echo "To exit this LIVE mode and stop ejabberd, press:" - echo " q(). and press the Enter key" - echo "" - echo "--------------------------------------------------------------------" - echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:" - echo " EJABBERD_BYPASS_WARNINGS=true" - echo "Press any key to continue" if [ "$EJABBERD_BYPASS_WARNINGS" != "true" ] ; then + echo "--------------------------------------------------------------------" + echo "" + echo "IMPORTANT: ejabberd is going to start in LIVE (interactive) mode." + echo "All log messages will be shown in the command shell." + echo "You can interact with the ejabberd node if you know how to use it." + echo "Please be extremely cautious with your actions," + echo "and exit immediately if you are not completely sure." + echo "" + echo "To exit this LIVE mode and stop ejabberd, press:" + echo " q(). and press the Enter key" + echo "" + echo "--------------------------------------------------------------------" + echo "To bypass permanently this warning, add to $EJABBERDCTL_CONFIG_PATH the line:" + echo " EJABBERD_BYPASS_WARNINGS=true" + echo "Press any key to continue" + read foo fi echo "" |