use manager state to install createrepo_c for airgap

This commit is contained in:
m0duspwnens committed 2024-10-23 10:40:26 -04:00
1 parent 1df104967e
commit 17ba048b50
1 file changed
+1 -1
+1 -1
View File
@@ -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