mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
update location of yum keys and repo files for setup
This commit is contained in:
@@ -165,9 +165,9 @@ get_random_value() {
|
|||||||
gpg_rpm_import() {
|
gpg_rpm_import() {
|
||||||
if [[ "$OS" == "centos" ]]; then
|
if [[ "$OS" == "centos" ]]; then
|
||||||
if [[ "$WHATWOULDYOUSAYYAHDOHERE" == "setup" ]]; then
|
if [[ "$WHATWOULDYOUSAYYAHDOHERE" == "setup" ]]; then
|
||||||
local RPMKEYSLOC="../salt/common/keys"
|
local RPMKEYSLOC="../salt/repo/client/files/centos/keys"
|
||||||
else
|
else
|
||||||
local RPMKEYSLOC="$UPDATEDIR/salt/common/keys"
|
local RPMKEYSLOC="$UPDATEDIR/salt/repo/client/files/centos/keys"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RPMKEYS=('RPM-GPG-KEY-EPEL-7' 'GPG-KEY-WAZUH' 'docker.pub' 'SALTSTACK-GPG-KEY.pub' 'securityonion.pub')
|
RPMKEYS=('RPM-GPG-KEY-EPEL-7' 'GPG-KEY-WAZUH' 'docker.pub' 'SALTSTACK-GPG-KEY.pub' 'securityonion.pub')
|
||||||
|
|||||||
@@ -2300,9 +2300,9 @@ securityonion_repo() {
|
|||||||
yum repolist all
|
yum repolist all
|
||||||
mkdir -p /etc/yum.repos.d
|
mkdir -p /etc/yum.repos.d
|
||||||
if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then
|
if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then
|
||||||
cp -f ../salt/common/yum_repos/securityonioncache.repo /etc/yum.repos.d/
|
cp -f ../salt/repo/client/files/centos/securityonioncache.repo /etc/yum.repos.d/
|
||||||
else
|
else
|
||||||
cp -f ../salt/common/yum_repos/securityonion.repo /etc/yum.repos.d/
|
cp -f ../salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user