move epel repo position and fix existence check

This commit is contained in:
Roni Väyrynen
2021-11-23 19:36:38 +02:00
parent 4bec10e62d
commit c08c6b17a2

View File

@@ -192,6 +192,14 @@ function InstallDependenciesRPM {
# Install necessary dependencies for XO build
# only install epel-release if doesn't exist
if [[ -z $(runcmd_stdout "rpm -qa epel-release") ]]; then
echo
printprog "Installing epel-repo"
runcmd "yum -y install epel-release"
printok "Installing epel-repo"
fi
# install packages
echo
printprog "Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils"
@@ -216,14 +224,6 @@ function InstallDependenciesRPM {
printok "Installing yarn"
fi
# only install epel-release if doesn't exist
if [[ -z $(runcmd_stdout "rpm -q epel-release") ]]; then
echo
printprog "Installing epel-repo"
runcmd "yum -y install epel-release"
printok "Installing epel-repo"
fi
# only install libvhdi-tools if vhdimount is not present
if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
echo