Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

script install (epel repo)

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
4 posts • Page 1 of 1
Omar
Posts: 24
Joined: Sun Dec 16, 2012 9:59 pm

script install (epel repo)

Post by Omar » Thu Dec 27, 2012 1:47 am

Hi, in script for install vesta (vst-install.sh) note that epel repository have i386 architecture has default:

# Install EPEL repo
if [ ! -e '/etc/yum.repos.d/epel.repo' ]; then
if [ "$release" -eq '5' ]; then
epel="5/i386/epel-release-5-4.noarch.rpm"
fi

if [ "$release" -eq '6' ]; then
epel="6/i386/epel-release-6-8.noarch.rpm"
fi

rpm -ivh http://dl.fedoraproject.org/pub/epel/$epel
if [ $? -ne 0 ]; then
echo "Error: can't install EPEL repository"
exit 1
fi
fi

Maybe this is better (for ensure architecture is right):

# Install EPEL repo
if [ ! -e '/etc/yum.repos.d/epel.repo' ]; then
if [ "$release" -eq '5' ]; then
epel="5/$arch/epel-release-5-4.noarch.rpm"
fi

if [ "$release" -eq '6' ]; then
epel="6/$arch/epel-release-6-8.noarch.rpm"
fi

rpm -ivh http://dl.fedoraproject.org/pub/epel/$epel
if [ $? -ne 0 ]; then
echo "Error: can't install EPEL repository"
exit 1
fi
fi

regards
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: script install (epel repo)

Post by skid » Thu Dec 27, 2012 3:31 pm

Thank you for suggestion Omar. It works that way because epel-release-5-4.noarch.rpm package is platform independent. But I agree with you, $arch variable is much more appropriate. Here is commit.
Top

Konstantinus
Posts: 99
Joined: Thu Apr 09, 2015 9:53 am

Re: script install (epel repo)

Post by Konstantinus » Fri Aug 21, 2015 12:59 pm

Так как установить на 7-ом CentOS?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: script install (epel repo)

Post by skurudo » Fri Aug 21, 2015 2:29 pm

Konstantinus wrote:Так как установить на 7-ом CentOS?
НИЧОСИ ВЫ ТОПИК ОТКАПАЛИ.
Есть самодельный, не-официальный установщик:
https://github.com/nobodypb/vesta/blob/ ... ll-rhel.sh

Topic closed.
Top


Locked
  • Print view

4 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password