echo "Using snippet $remove_uek_snippet"
$SNIPPET($remove_uek_snippet)
+#set $dist_upgrade_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.280.dist-upgrade.sh"
+echo
+echo "Using snippet $dist_upgrade_snippet"
+$SNIPPET($dist_upgrade_snippet)
+
#set $create_motd_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.300.create-motd.sh"
echo
echo "Using snippet $create_motd_snippet"
#!/bin/env python3
# -*- coding: utf-8 -*-
-__version__ = '2.0.2'
+__version__ = '2.0.3'
# vim: ts=4 et list
sed -i -e 's/^\(DEFAULTKERNEL=\).*/\1kernel/i' /etc/sysconfig/kernel
- echo
- log "Removing UEK packages ..."
+ if rpm -qa | grep -- -uek- >/dev/null ; then
+
+ echo
+ log "Removing UEK packages ..."
+
+ if yum remove -y *-uek-*; then
+ :
+ else
+ echo "[$(date)]: Could not remove UEK packages." | tee -a "${ERROR_POINTER}"
+ fi
- yum remove -y *-uek-*
+ else
+ echo
+ echo "Removing UEK packages not necessary."
+ fi
}
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+dist_upgrade() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling dist_upgrade() ..."
+ echo
+ log "Upgrading all packages ..."
+ echo
+
+ if yum upgrade -y ; then
+ :
+ else
+ echo "[$(date)]: Upgrading system not successful." | tee -a "${ERROR_POINTER}"
+ fi
+
+}
+
+dist_upgrade
+
+#end raw
+## vim: ts=4 et list
+