From 796a7274a1e286eb68856f293d85d2dccbbfebc1 Mon Sep 17 00:00:00 2001 From: george Date: Sat, 5 Nov 2022 08:29:15 -0400 Subject: [PATCH] 2022-11-05 08:29:15 --- restore-mysql-daily | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/restore-mysql-daily b/restore-mysql-daily index f4444c6..d434f0b 100644 --- a/restore-mysql-daily +++ b/restore-mysql-daily @@ -217,7 +217,7 @@ if [[ $MASTER_HOST && $MASTER_USER && $MASTER_PASSWORD ]]; then echo -e "\napplying configuration for replication\n\thost: $MASTER_HOST\n\tuser: $MASTER_USER" $CMD mysql -e "CHANGE MASTER TO master_host='$MASTER_HOST',master_user='$MASTER_USER',master_password='$MASTER_PASSWORD';" else - echo "\nreplication credentials not configured" + echo -e "\nreplication credentials not configured" fi if [[ $SETPOSSTMT ]]; then @@ -239,11 +239,11 @@ if [[ $NOPROMPT == false ]]; then fi if [[ $DONOTSTART != true ]]; then - echo -e "restarting replication" + echo -e "\nrestarting replication" $CMD mysql -e "START SLAVE" fi END=$(date +%s) EXCTIME=$(expr $END - $START) -printf 'total runtime: %02dh:%02dm:%02ds\n' $((EXCTIME/3600)) $((EXCTIME%3600/60)) $((EXCTIME%60)) -echo "--END: $(date +%F\ %T)\n\n" +printf '\ntotal runtime: %02dh:%02dm:%02ds\n' $((EXCTIME/3600)) $((EXCTIME%3600/60)) $((EXCTIME%60)) +echo "\n--END: $(date +%F\ %T)\n\n"