Remove CentOS 7 support, #59

This commit is contained in:
ronivay
2020-12-14 10:31:23 +02:00
parent 15e3f4b1a3
commit 4c9a25acbf
2 changed files with 6 additions and 14 deletions

View File

@@ -67,7 +67,6 @@ Script has been tested to work with following distros:
- Ubuntu 18.04 - Ubuntu 18.04
Installation works but not tested frequently: Installation works but not tested frequently:
- CentOS 7
- Debian 8 - Debian 8
- Debian 9 - Debian 9
- Ubuntu 16.04 - Ubuntu 16.04
@@ -97,7 +96,7 @@ CentOS:
- openssl-devel - openssl-devel
- redis - redis
- libpng-devel - libpng-devel
- python - python3
- git - git
- nfs-utils - nfs-utils
- libvhdi-tools - libvhdi-tools

View File

@@ -125,18 +125,11 @@ function InstallDependenciesCentOS {
# Install necessary dependencies for XO build # Install necessary dependencies for XO build
#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 # install packages
echo echo
printprog "Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils" printprog "Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils"
cmdlog "yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel $PYTHON git nfs-utils cifs-utils lvm2" cmdlog "yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python3 git nfs-utils cifs-utils lvm2"
yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel $PYTHON git nfs-utils cifs-utils lvm2 >>$LOGFILE 2>&1 yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python3 git nfs-utils cifs-utils lvm2 >>$LOGFILE 2>&1
printok "Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils" printok "Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils"
# only run automated node install if executable not found # only run automated node install if executable not found
@@ -822,8 +815,8 @@ function CheckOS {
if [ -f /etc/centos-release ] ; then if [ -f /etc/centos-release ] ; then
OSVERSION=$(grep -Eo "[0-9]" /etc/centos-release | head -1) OSVERSION=$(grep -Eo "[0-9]" /etc/centos-release | head -1)
OSNAME="CentOS" OSNAME="CentOS"
if [[ ! $OSVERSION =~ ^(7|8) ]]; then if [[ $OSVERSION != "8" ]]; then
printfail "Only CentOS 7/8 supported" printfail "Only CentOS 8 supported"
exit 1 exit 1
fi fi
cmdlog "which xe" cmdlog "which xe"
@@ -842,7 +835,7 @@ function CheckOS {
exit 1 exit 1
fi fi
else else
printfail "Only CentOS 7 / Ubuntu 16/18 and Debian 8/9 supported" printfail "Only CentOS 8 / Ubuntu 16/18 and Debian 8/9 supported"
exit 1 exit 1
fi fi