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
|
# 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
|
# 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"
|
||||||
@@ -216,14 +224,6 @@ function InstallDependenciesRPM {
|
|||||||
printok "Installing yarn"
|
printok "Installing yarn"
|
||||||
fi
|
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
|
# only install libvhdi-tools if vhdimount is not present
|
||||||
if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
|
if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user