mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Push repolist to dev null
This commit is contained in:
@@ -72,11 +72,6 @@ repair_yumdb:
|
|||||||
- onlyif:
|
- onlyif:
|
||||||
- 'yum check-update 2>&1 | grep "Error: rpmdb open failed"'
|
- 'yum check-update 2>&1 | grep "Error: rpmdb open failed"'
|
||||||
|
|
||||||
epel:
|
|
||||||
pkg.installed:
|
|
||||||
- skip_suggestions: True
|
|
||||||
- pkgs:
|
|
||||||
- epel-release
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Install common packages
|
# Install common packages
|
||||||
|
|||||||
@@ -2644,6 +2644,7 @@ update_sudoers() {
|
|||||||
|
|
||||||
update_packages() {
|
update_packages() {
|
||||||
if [ "$OS" = 'centos' ]; then
|
if [ "$OS" = 'centos' ]; then
|
||||||
|
yum repolist >> /dev/null
|
||||||
yum -y update >> "$setup_log"
|
yum -y update >> "$setup_log"
|
||||||
else
|
else
|
||||||
retry 50 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user