Skip to content

Commit 8bb82da

Browse files
authored
Merge pull request #83 from Secure-24/add_oraclelinux_support
Add OracleLinux support
2 parents 67f2c75 + 37fe563 commit 8bb82da

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
## Development
66

7+
* Added support for Oracle Linux.
8+
9+
Contributed by Sean Millichamp (@seanmil)
10+
711
## Release 1.5.1 (2021-07-08)
812

913
* remove unused hiera configuration

files/bash/os_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if [ -e /etc/os-release ]; then
4-
export OS_RELEASE=$(sed -n -e "/^ID=/p" /etc/os-release | sed -e 's~\(.*\)=\(.*\)~\U\2~g' -e 's~"~~g')
4+
export OS_RELEASE=$(sed -n -e "/^ID=/p" /etc/os-release | sed -e 's~\(.*\)=\(.*\)~\U\2~g' -e 's~[" ]~~g')
55
else
66
# fall back to older methods for OS that do not use systemd
77
export OS_TEST_DEB=$(lsb_release -a 2> /dev/null | grep Distributor | awk '{print $3}')
@@ -16,4 +16,4 @@ else
1616
# default
1717
export OS_RELEASE='UNKNOWN'
1818
fi
19-
fi
19+
fi

tasks/available_updates_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source "${PT__installdir}/patching/files/bash/os_test.sh"
55

66
case $OS_RELEASE in
77
################################################################################
8-
RHEL | CENTOS | FEDORA | ROCKY)
8+
RHEL | CENTOS | FEDORA | ROCKY | OL)
99
# RedHat variant
1010
source "${PT__installdir}/patching/files/bash/available_updates_rh.sh"
1111
;;

tasks/cache_update_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source "${PT__installdir}/patching/files/bash/os_test.sh"
1111

1212
case $OS_RELEASE in
1313
################################################################################
14-
RHEL | CENTOS | FEDORA | ROCKY)
14+
RHEL | CENTOS | FEDORA | ROCKY | OL)
1515
# RedHat variant
1616
# update yum cache
1717
OUTPUT=$(yum clean expire-cache 2>&1)

tasks/reboot_required_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export REBOOT_REQUIRED="false"
88

99
case $OS_RELEASE in
1010
################################################################################
11-
RHEL | CENTOS | FEDORA | ROCKY)
11+
RHEL | CENTOS | FEDORA | ROCKY | OL)
1212
# RedHat variant
1313
source "${PT__installdir}/patching/files/bash/reboot_required_rh.sh"
1414
;;

tasks/update_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ STATUS=0
2424

2525
case $OS_RELEASE in
2626
################################################################################
27-
RHEL | CENTOS | FEDORA | ROCKY)
27+
RHEL | CENTOS | FEDORA | ROCKY | OL)
2828
# RedHat variant
2929
source "${PT__installdir}/patching/files/bash/update_rh.sh"
3030
STATUS=$?

0 commit comments

Comments
 (0)