From d3b8fbaafcaaefcd60bd71d2abcd7d5c1771377a Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 10 Jan 2023 13:13:13 -0500 Subject: [PATCH] Revert "ensure yum-utils and createrepo are installed from so remote repo" --- setup/so-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 setup/so-functions diff --git a/setup/so-functions b/setup/so-functions old mode 100644 new mode 100755 index 478df1024..85b35c54c --- a/setup/so-functions +++ b/setup/so-functions @@ -1935,6 +1935,7 @@ securityonion_repo() { repo_sync_local() { # Sync the repo from the the SO repo locally. # Check for reposync + info "Backing up old repos" mkdir -p /nsm/repo mkdir -p /root/reposync_cache echo "[main]" > /root/repodownload.conf @@ -1961,14 +1962,14 @@ repo_sync_local() { if [[ ! "$REPOSYNC" -gt 0 ]]; then # Install reposync info "Installing createrepo" - logCmd "yum install -y -c /root/repodownload.conf --disablerepo='*' --enablerepo='securityonionsync' yum-utils createrepo" + logCmd "yum -y install -c /root/repodownload.conf yum-utils createrepo" else info "We have what we need to sync" fi logCmd "reposync --norepopath -n -g -l -d -m -c /root/repodownload.conf -r securityonionsync --download-metadata -p /nsm/repo/" - + # After the download is complete run createrepo create_repo