mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-11-16 01:14:09 +01:00
Revert "ensure yum-utils and createrepo are installed from so remote repo"
This commit is contained in:
1 parent
745387a756
commit
d3b8fbaafc
1 file changed
+2
-1
Regular → Executable
+2
-1
@@ -1935,6 +1935,7 @@ 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
|
||||||
@@ -1961,7 +1962,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 install -y -c /root/repodownload.conf --disablerepo='*' --enablerepo='securityonionsync' yum-utils createrepo"
|
logCmd "yum -y install -c /root/repodownload.conf 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