Merge pull request #151 from ronivay/feat/centos9-support
feat: add centos 9 stream support
This commit is contained in:
@@ -36,6 +36,7 @@ First thing you need is a VM (or even a physical machine if you wish) where to i
|
|||||||
|
|
||||||
Supported Linux distributions and versions:
|
Supported Linux distributions and versions:
|
||||||
|
|
||||||
|
- CentOS 9 Stream
|
||||||
- CentOS 8 Stream
|
- CentOS 8 Stream
|
||||||
- AlmaLinux 9
|
- AlmaLinux 9
|
||||||
- AlmaLinux 8
|
- AlmaLinux 8
|
||||||
|
@@ -243,7 +243,7 @@ function InstallDependenciesRPM {
|
|||||||
echo
|
echo
|
||||||
printprog "Installing libvhdi-tools"
|
printprog "Installing libvhdi-tools"
|
||||||
if [[ "$INSTALL_REPOS" == "true" ]]; then
|
if [[ "$INSTALL_REPOS" == "true" ]]; then
|
||||||
runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el8.rpm"
|
runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el${OSVERSION}.rpm"
|
||||||
runcmd "sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo"
|
runcmd "sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo"
|
||||||
runcmd "yum --enablerepo=forensics install -y libvhdi-tools"
|
runcmd "yum --enablerepo=forensics install -y libvhdi-tools"
|
||||||
else
|
else
|
||||||
@@ -1263,8 +1263,8 @@ function CheckOS {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" != "8" ]]; then
|
if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then
|
||||||
printfail "Only CentOS 8 supported"
|
printfail "Only CentOS 8/9 supported"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user