add oel to set_os

This commit is contained in:
m0duspwnens
2023-08-25 14:56:42 -04:00
parent c22f9687fb
commit 388c90f641
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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