From 32a56413dcd398a2f88479f8c53c1c4e87f48302 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 8 Jun 2021 13:19:52 +0200 Subject: [PATCH] Succcess message --- bin/get-centos8-streams-boot | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/bin/get-centos8-streams-boot b/bin/get-centos8-streams-boot index c57ca12..166cc92 100755 --- a/bin/get-centos8-streams-boot +++ b/bin/get-centos8-streams-boot @@ -8,7 +8,7 @@ DEBUG="n" QUIET='n' SIMULATE="n" -VERSION="0.3.4" +VERSION="0.3.5" BASE_NAME="$(basename ${0})" BASE_DIR="$(dirname ${0})" @@ -49,6 +49,7 @@ LOG_ROOTDIR="/var/log" LOG_BASENAME="update-centos8-streams-boot.log" ISO_IMAGE_DIR="/var/tmp/isos" ISO_IMAGE= +COBBLER_DISTRO_NAME='CentOS-8-Stream-x86_64' HAS_TTY='y' @@ -775,6 +776,25 @@ perform_mirror() { echo "${tstamp}" > "${TIMESTAMP_FILE}" fi + local msg=$( cat <<-EOF + Congratulation! + + The Cobbler distribution '${GREEN}${COBBLER_DISTRO_NAME}${NORMAL}' was sussesful updated from '${CYAN}${mirror}${NORMAL}'. + The new timestamp is: ${CYAN}${tstamp}${NORMAL} + + Cheers + root@$( hostname -f ) + + $( my_date ) + + EOF + ) + empty_line + dline + echo -e "${msg}" + empty_line + line + return ${ret} } -- 2.39.5