25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Allow bypassing script interraction (#516)

This commit is contained in:
Christophe Romain 2015-04-23 10:14:08 +02:00
parent 38dd44e18f
commit 23aa8598ab
2 changed files with 31 additions and 25 deletions

View File

@ -21,19 +21,21 @@ function error
exit $2 exit $2
} }
echo "--------------------------------------------------------------------" [ -z $NO_WARNINGS ] && {
echo "" echo "--------------------------------------------------------------------"
echo "ejabberd cluster configuration" echo ""
echo "" echo "ejabberd cluster configuration"
echo "This ejabberd node will be configured for use in an ejabberd cluster." echo ""
echo "IMPORTANT: all local data from the database will be lost, and" echo "This ejabberd node will be configured for use in an ejabberd cluster."
echo "cluster database will be initialized. All data from the master" echo "IMPORTANT: all local data from the database will be lost, and"
echo "node will be replicated to this one." echo "cluster database will be initialized. All data from the master"
echo "" echo "node will be replicated to this one."
echo "--------------------------------------------------------------------" echo ""
echo "Press any key to continue, or Ctrl+C to stop now" echo "--------------------------------------------------------------------"
read foo echo "Press any key to continue, or Ctrl+C to stop now"
echo "" read foo
echo ""
}
[ $# -eq 0 ] && { [ $# -eq 0 ] && {
echo "Make sure you have a running remote master ejabberd node" echo "Make sure you have a running remote master ejabberd node"

View File

@ -17,18 +17,22 @@ function error
exit $2 exit $2
} }
echo "--------------------------------------------------------------------" [ -z $NO_WARNINGS ] && {
echo "" echo "--------------------------------------------------------------------"
echo "ejabberd cluster configuration" echo ""
echo "" echo "ejabberd cluster configuration"
echo "This ejabberd node will be removed from the cluster." echo ""
echo "IMPORTANT: this node will be stopped. At least one other clustered" echo "This ejabberd node will be removed from the cluster."
echo "node must be running." echo "IMPORTANT: this node will be stopped. At least one other clustered"
echo "" echo "node must be running."
echo "--------------------------------------------------------------------" echo ""
echo "Press any key to continue, or Ctrl+C to stop now" echo "--------------------------------------------------------------------"
read foo echo "Press any key to continue, or Ctrl+C to stop now"
echo "" read foo
echo ""
}
echo ok
exit
PA=/tmp/clustersetup_$$ PA=/tmp/clustersetup_$$
CTL=$(which ejabberdctl) CTL=$(which ejabberdctl)