move epel repo position and fix existence check
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user