From dbb56b45b5c08eb4c2ee9f455efc076ec11d6996 Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 19:57:09 +0400 Subject: [PATCH] Update restore_db.sh --- restore_db.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/restore_db.sh b/restore_db.sh index 879510d..7cc21fe 100755 --- a/restore_db.sh +++ b/restore_db.sh @@ -9,9 +9,16 @@ VERBOSE=0 if [ ! -n "$BASH" ] ;then echo Please run this script $0 with bash; exit 1; fi # === FUNCTIONS === -f_log() +f_log() { - echo "RESTORE: $@" + local bold=$(tput bold) + local yellow=$(tput setf 6) + local red=$(tput setf 4) + local green=$(tput setf 2) + local reset=$(tput sgr0) + local toend=$(tput hpa $(tput cols))$(tput cub 6) + + logger "RESTORE: $@" if [ $VERBOSE -eq 1 ]; then echo "RESTORE: $@"