mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add oel to set_os
This commit is contained in:
@@ -446,6 +446,10 @@ set_os() {
|
||||
OS=centos
|
||||
OSVER=9
|
||||
is_centos=true
|
||||
elif grep -q "Oracle Linux Server release 9" /etc/system-release; then
|
||||
OS=oel
|
||||
OSVER=9
|
||||
is_oracle=true
|
||||
fi
|
||||
cron_service_name="crond"
|
||||
else
|
||||
|
||||
@@ -780,7 +780,7 @@ main() {
|
||||
if [[ $is_airgap -eq 0 ]]; then
|
||||
yum clean all
|
||||
check_os_updates
|
||||
elif [[ $OS == 'oracle' || $OS == 'redhat'|| $OS == 'centos' ]]; then
|
||||
elif [[ $OS == 'oel' || $OS == 'rocky'|| $OS == 'centos' ]]; then
|
||||
# sync remote repo down to local if not airgap
|
||||
repo_sync
|
||||
check_os_updates
|
||||
|
||||
Reference in New Issue
Block a user