Skip to content

Commit

Permalink
update EPEL repo installation
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Aug 14, 2017
1 parent 6e31282 commit b002209
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 7 additions & 4 deletions shadowsocks-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,16 @@ fi

install_dependencies() {
if check_sys packageManager yum; then
yum install -y epel-release
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error:${plain} Install EPEL repo failed, please check it." && exit 1
yum --enablerepo=epel -y install udns-devel
echo -e "[${green}Info${plain}] Adding the EPEL repository..."
yum install -y epel-release yum-utils
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error:${plain} Install EPEL repository failed, please check it." && exit 1
yum-config-manager --enable epel
echo -e "[${green}Info${plain}] Adding the EPEL repository complete..."

yum_depends=(
unzip gzip openssl openssl-devel gcc python python-devel python-setuptools pcre pcre-devel libtool libevent xmlto
autoconf automake make curl curl-devel zlib-devel perl perl-devel cpio expat-devel gettext-devel asciidoc
libev-devel
libev-devel udns-devel
)
for depend in ${yum_depends[@]}; do
error_detect_depends "yum -y install ${depend}"
Expand Down
6 changes: 5 additions & 1 deletion shadowsocks-libev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ pre_install(){
echo "Press any key to start...or press Ctrl+C to cancel"
char=`get_char`
#Install necessary dependencies
yum install -y epel-release && yum makecache
echo -e "[${green}Info${plain}] Adding the EPEL repository..."
yum install -y epel-release yum-utils
[ ! -f /etc/yum.repos.d/epel.repo ] && echo -e "${red}Error${plain} Install EPEL repository failed, please check it." && exit 1
yum-config-manager --enable epel
echo -e "[${green}Info${plain}] Adding the EPEL repository complete..."
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git
}

Expand Down

0 comments on commit b002209

Please sign in to comment.