]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Succcess message
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 8 Jun 2021 11:19:52 +0000 (13:19 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 8 Jun 2021 11:19:52 +0000 (13:19 +0200)
bin/get-centos8-streams-boot

index c57ca12b83d52226bf4675dca83bb2d156543f79..166cc9292cd005060bc6a17c4f11b4195f7869ec 100755 (executable)
@@ -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}
 
 }