From 4adcbb29df44587fe25003910f7acef9c30e4ed0 Mon Sep 17 00:00:00 2001 From: George Liu Date: Thu, 26 May 2016 06:17:48 +1000 Subject: [PATCH] update inc/axelsetup.inc check for axel binary existence --- inc/axelsetup.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/axelsetup.inc b/inc/axelsetup.inc index 9c72349fc..6bc3c6162 100644 --- a/inc/axelsetup.inc +++ b/inc/axelsetup.inc @@ -132,12 +132,12 @@ axelsetup() { fi # centos 5.x ver ### - if [[ "$CENTOS_SIX" = '6' ]]; then + if [[ "$CENTOS_SIX" = '6' && ! -f /usr/local/bin/axel ]]; then install_axel fi ### - if [[ "$CENTOS_SEVEN" = '7' ]]; then + if [[ "$CENTOS_SEVEN" = '7' && ! -f /usr/local/bin/axel ]]; then # axel download accelerator works with CentOS 7.x and epel repo # unlike axel provided by rpmforge on CentOS 6.x repo # yum -y install axel