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"