Run check-update in preflight instead of update

This commit is contained in:
William Wernert
2021-11-02 14:29:58 -04:00
parent 7c7c225a41
commit 8670aa6cd8

View File

@@ -33,7 +33,7 @@ check_default_repos() {
if [[ $OS == 'centos' ]]; then
printf '%s' 'yum update.' | tee -a "$preflight_log"
echo "" >> "$preflight_log"
yum -y update >> $preflight_log 2>&1
yum -y check-update >> $preflight_log 2>&1
ret_code=$?
else
printf '%s' 'apt update.' | tee -a "$preflight_log"