mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
change delete repos
This commit is contained in:
@@ -418,11 +418,11 @@ up_2.3.3X_to_2.3.50() {
|
|||||||
# Import GPG Keys
|
# Import GPG Keys
|
||||||
gpg_rpm_import
|
gpg_rpm_import
|
||||||
|
|
||||||
if [[ ! $is_airgap ]]; then
|
if [ $is_airgap -eq 1 ]; then
|
||||||
|
|
||||||
DELREPOS=('CentOS-Base' 'CentOS-CR' 'CentOS-Debuginfo' 'docker-ce' 'CentOS-fasttrack' 'CentOS-Media' 'CentOS-Sources' 'CentOS-Vault' 'CentOS-x86_64-kernel' 'epel' 'epel-testing' 'saltstack' 'wazuh')
|
DELREPOS=('CentOS-Base.repo' 'CentOS-CR' 'CentOS-Debuginfo' 'docker-ce' 'CentOS-fasttrack' 'CentOS-Media' 'CentOS-Sources' 'CentOS-Vault' 'CentOS-x86_64-kernel' 'epel' 'epel-testing' 'saltstack' 'wazuh')
|
||||||
|
|
||||||
for DELREPO in "${DELREPOS[@]}"; do
|
for DELREPO in ${DELREPOS[@]}; do
|
||||||
rm -f /etc/yum.repos.d/"$DELREPO".repo
|
rm -f /etc/yum.repos.d/"$DELREPO".repo
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user