diff --git a/xo-install.sh b/xo-install.sh index 6b03441..9a41124 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -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