Skip to content

Commit 96e505e

Browse files
author
Nirbhay Choubey
committed
MDEV-7319 : Galera bootstrap (/etc/init.d/mysql bootstrap)
returns code 0 on failure Modified init script to return with proper exit status for bootstrap command. [Based on Kenny Rasschaert's suggestion]
1 parent 3a37c01 commit 96e505e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

support-files/mysql.server.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,9 @@ case "$mode" in
445445
'bootstrap')
446446
# Bootstrap the cluster, start the first node
447447
# that initiate the cluster
448-
echo $echo_n "Bootstrapping the cluster"
448+
echo $echo_n "Bootstrapping the cluster.. "
449449
$0 start $other_args --wsrep-new-cluster
450+
exit $?
450451
;;
451452
*)
452453
# usage

0 commit comments

Comments
 (0)