Alphanet.sh: minor fixes

This commit is contained in:
Grégoire Henry 2018-07-20 23:10:38 +02:00
parent 3b4db01ac7
commit 8b6aa2b16d

View File

@ -398,11 +398,11 @@ log_endorser() {
}
stop_endorser() {
if ! check_baker; then
echo -e "\033[31mNo baker to kill!\033[0m"
if ! check_endorser; then
echo -e "\033[31mNo endorser to kill!\033[0m"
exit 1
fi
echo -e "\033[32mStopping the baker...\033[0m"
echo -e "\033[32mStopping the endorser...\033[0m"
call_docker_compose stop $endorsers
}
@ -463,11 +463,11 @@ log_accuser() {
}
stop_accuser() {
if ! check_baker; then
echo -e "\033[31mNo baker to kill!\033[0m"
if ! check_accuser; then
echo -e "\033[31mNo accuser to kill!\033[0m"
exit 1
fi
echo -e "\033[32mStopping the baker...\033[0m"
echo -e "\033[32mStopping the accuser...\033[0m"
call_docker_compose stop $accusers
}