mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Run check-update in preflight instead of update
This commit is contained in:
@@ -33,7 +33,7 @@ check_default_repos() {
|
|||||||
if [[ $OS == 'centos' ]]; then
|
if [[ $OS == 'centos' ]]; then
|
||||||
printf '%s' 'yum update.' | tee -a "$preflight_log"
|
printf '%s' 'yum update.' | tee -a "$preflight_log"
|
||||||
echo "" >> "$preflight_log"
|
echo "" >> "$preflight_log"
|
||||||
yum -y update >> $preflight_log 2>&1
|
yum -y check-update >> $preflight_log 2>&1
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
else
|
else
|
||||||
printf '%s' 'apt update.' | tee -a "$preflight_log"
|
printf '%s' 'apt update.' | tee -a "$preflight_log"
|
||||||
|
|||||||
Reference in New Issue
Block a user