mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #9544 from Security-Onion-Solutions/2.4createrepoinstall
ensure yum-utils and createrepo are installed from so remote repo
This commit is contained in:
3
setup/so-functions
Executable file → Normal file
3
setup/so-functions
Executable file → Normal file
@@ -1935,7 +1935,6 @@ securityonion_repo() {
|
|||||||
repo_sync_local() {
|
repo_sync_local() {
|
||||||
# Sync the repo from the the SO repo locally.
|
# Sync the repo from the the SO repo locally.
|
||||||
# Check for reposync
|
# Check for reposync
|
||||||
info "Backing up old repos"
|
|
||||||
mkdir -p /nsm/repo
|
mkdir -p /nsm/repo
|
||||||
mkdir -p /root/reposync_cache
|
mkdir -p /root/reposync_cache
|
||||||
echo "[main]" > /root/repodownload.conf
|
echo "[main]" > /root/repodownload.conf
|
||||||
@@ -1962,7 +1961,7 @@ repo_sync_local() {
|
|||||||
if [[ ! "$REPOSYNC" -gt 0 ]]; then
|
if [[ ! "$REPOSYNC" -gt 0 ]]; then
|
||||||
# Install reposync
|
# Install reposync
|
||||||
info "Installing createrepo"
|
info "Installing createrepo"
|
||||||
logCmd "yum -y install -c /root/repodownload.conf yum-utils createrepo"
|
logCmd "yum install -y -c /root/repodownload.conf --disablerepo='*' --enablerepo='securityonionsync' yum-utils createrepo"
|
||||||
else
|
else
|
||||||
info "We have what we need to sync"
|
info "We have what we need to sync"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user