]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Changes on Debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 25 Jun 2020 15:58:37 +0000 (17:58 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 25 Jun 2020 15:58:37 +0000 (17:58 +0200)
kickstart/template-centos7.ks
snippets/tpl.300.create-motd.sh

index 3ed3a67720c40a6ba90a3ae83a0697353813dbe2..552b91b8ade58a327292b974a282284bd2656d51 100644 (file)
@@ -120,7 +120,7 @@ exec < /dev/console &> >(tee -a "$POST_LOG")
 
 
 ### debug
-set -x
+#set -x
 
 echo "cobbler profile = $profile_name"
 
index 8a557c077c0e2274fda47655042b1ec4535eff44..0215ae6c025cfb0ca4383a0944472fb94d85e2ca 100644 (file)
@@ -19,6 +19,10 @@ create_motd() {
         "${mk_script}" > /etc/motd
         mkdir -pv /root/bin
         cp -pv "${mk_script}" /root/bin/create-motd.sh
+        echo "Generated motd:"
+        cat /etc/motd
+        echo '<--'
+        echo
     else
         echo "[$(date)]: Could not get 'mk_create_motd.ksh' from '${url}'." | tee -a "${ERROR_POINTER}"
     fi