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