From 17ba048b50da30a9933573ddae9c875c9880f461 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 23 Oct 2024 10:40:26 -0400 Subject: [PATCH] use manager state to install createrepo_c for airgap --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 8e1297812..51ddabadf 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -803,6 +803,7 @@ create_manager_pillars() { create_repo() { title "Create the repo directory" + logCmd "dnf -y install yum-utils createrepo_c" logCmd "createrepo /nsm/repo" } @@ -1820,7 +1821,6 @@ repo_sync_local() { echo "gpgcheck=1" >> /opt/so/conf/reposync/repodownload.conf logCmd "dnf repolist" - logCmd "dnf -y install yum-utils createrepo_c" if [[ ! $is_airgap ]]; then curl --retry 5 --retry-delay 60 -A "netinstall/$SOVERSION/$OS/$(uname -r)/1" https://sigs.securityonion.net/checkup --output /tmp/install