use manager state to install createrepo_c for airgap

This commit is contained in:
m0duspwnens
2024-10-23 10:40:26 -04:00
parent 1df104967e
commit 17ba048b50

View File

@@ -803,6 +803,7 @@ create_manager_pillars() {
create_repo() { create_repo() {
title "Create the repo directory" title "Create the repo directory"
logCmd "dnf -y install yum-utils createrepo_c"
logCmd "createrepo /nsm/repo" logCmd "createrepo /nsm/repo"
} }
@@ -1820,7 +1821,6 @@ repo_sync_local() {
echo "gpgcheck=1" >> /opt/so/conf/reposync/repodownload.conf echo "gpgcheck=1" >> /opt/so/conf/reposync/repodownload.conf
logCmd "dnf repolist" logCmd "dnf repolist"
logCmd "dnf -y install yum-utils createrepo_c"
if [[ ! $is_airgap ]]; then 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 curl --retry 5 --retry-delay 60 -A "netinstall/$SOVERSION/$OS/$(uname -r)/1" https://sigs.securityonion.net/checkup --output /tmp/install