update comments
improve epel repo installation Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
00239b2b27
commit
5c36063f06
|
|
@ -311,13 +311,17 @@ pre_install(){
|
||||||
echo "Press any key to start...or press Ctrl+C to cancel"
|
echo "Press any key to start...or press Ctrl+C to cancel"
|
||||||
char=`get_char`
|
char=`get_char`
|
||||||
#Install necessary dependencies
|
#Install necessary dependencies
|
||||||
echo -e "[${green}Info${plain}] Adding the EPEL repository..."
|
echo -e "[${green}Info${plain}] Checking the EPEL repository..."
|
||||||
[ ! -f /etc/yum.repos.d/epel.repo ] && yum install -y epel-release
|
if [ ! -f /etc/yum.repos.d/epel.repo ]; then
|
||||||
[ ! "$(command -v yum-config-manager)" ] && yum install -y yum-utils
|
yum install -y -q epel-release
|
||||||
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error${plain} Install EPEL repository failed, please check it." && exit 1
|
fi
|
||||||
[ -f /etc/yum.repos.d/epel.repo ] && yum-config-manager --enable epel
|
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "[${red}Error${plain}] Install EPEL repository failed, please check it." && exit 1
|
||||||
echo -e "[${green}Info${plain}] Adding the EPEL repository complete..."
|
[ ! "$(command -v yum-config-manager)" ] && yum install -y -q yum-utils
|
||||||
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git c-ares-devel
|
if [ x"`yum-config-manager epel | grep -w enabled | awk '{print $3}'`" != x"True" ]; then
|
||||||
|
yum-config-manager --enable epel
|
||||||
|
fi
|
||||||
|
echo -e "[${green}Info${plain}] Checking the EPEL repository complete..."
|
||||||
|
yum install -y -q unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto libev-devel pcre pcre-devel git c-ares-devel
|
||||||
}
|
}
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user