Change logic with choosing correct centos python package and some minor indentation fixes
This commit is contained in:
@@ -118,15 +118,17 @@ function InstallDependenciesCentOS {
|
||||
echo -e "\r${OK} Installing libvhdi-tools from forensics repository"
|
||||
fi
|
||||
|
||||
# install
|
||||
#determine which python package is needed. CentOS 7 requires python, 8 is python3
|
||||
if [[ $OSVERSION == "8" ]]; then
|
||||
PYTHON="python3"
|
||||
else
|
||||
PYTHON="python"
|
||||
fi
|
||||
|
||||
# install packages
|
||||
echo
|
||||
echo -ne "${PROGRESS} Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils"
|
||||
if [[ $OSVERSION == "7" ]]; then
|
||||
yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python git nfs-utils cifs-utils lvm2 >/dev/null
|
||||
fi
|
||||
if [[ $OSVERSION == "8" ]]; then
|
||||
yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python3 git nfs-utils cifs-utils lvm2 >/dev/null
|
||||
fi
|
||||
yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel $PYTHON git nfs-utils cifs-utils lvm2 >/dev/null
|
||||
echo -e "\r${OK} Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils"
|
||||
|
||||
echo
|
||||
|
Reference in New Issue
Block a user