mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 13:01:56 -07:00
added tar into packages list
This commit is contained in:
parent
902ed117dd
commit
cc43846be2
1 changed files with 8 additions and 14 deletions
|
@ -10,12 +10,15 @@ VERSION='0.9.7'
|
||||||
YUM_REPO='/etc/yum.repos.d/vesta.repo'
|
YUM_REPO='/etc/yum.repos.d/vesta.repo'
|
||||||
arch=$(uname -i)
|
arch=$(uname -i)
|
||||||
|
|
||||||
|
tools="screen mc libpng libjpeg curl curl libmcrypt libmcrypt mhash mhash
|
||||||
|
freetype openssl flex libxml2 ImageMagick sqlite sqlite pcre pcre sudo bc
|
||||||
|
mailx lsof ntp tar whois telnet rsync"
|
||||||
|
|
||||||
rpms="nginx httpd httpd-devel.$arch mod_ssl mod_ruid2 mod_extract_forwarded
|
rpms="nginx httpd httpd-devel.$arch mod_ssl mod_ruid2 mod_extract_forwarded
|
||||||
webalizer awstats mysql mysql-server php php-bcmath php-cli php-common
|
webalizer awstats mysql mysql-server php php-bcmath php-cli php-common
|
||||||
php-devel.$arch php-gd php-imap php-mbstring php-mcrypt php-mysql
|
php-gd php-imap php-mbstring php-mcrypt php-mysql php-pdo php-soap php-tidy
|
||||||
php-pdo php-soap php-tidy php-xml php-xmlrpc phpMyAdmin exim dovecot
|
php-xml php-xmlrpc phpMyAdmin exim dovecot clamd spamassassin roundcubemail
|
||||||
clamd spamassassin roundcubemail bind bind-utils bind-libs vsftpd
|
bind bind-utils bind-libs vsftpd rrdtool GeoIP vesta vesta-nginx vesta-php"
|
||||||
rrdtool vesta vesta-nginx vesta-php"
|
|
||||||
|
|
||||||
# Am I root?
|
# Am I root?
|
||||||
if [ "x$(id -u)" != 'x0' ]; then
|
if [ "x$(id -u)" != 'x0' ]; then
|
||||||
|
@ -180,20 +183,13 @@ gen_pass() {
|
||||||
|
|
||||||
# Update system
|
# Update system
|
||||||
yum -y update
|
yum -y update
|
||||||
|
|
||||||
# Return code check
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'Error: yum update failed'
|
echo 'Error: yum update failed'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install additional packages
|
# Install additional packages
|
||||||
yum -y install screen mc libpng libjpeg curl curl libmcrypt \
|
yum -y install $tools
|
||||||
libmcrypt mhash mhash freetype openssl flex libxml2 \
|
|
||||||
ImageMagick sqlite sqlite GeoIP GeoIP-data GeoIP pcre pcre \
|
|
||||||
sudo bc mailx lsof ntp
|
|
||||||
|
|
||||||
# Return code check
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'Error: yum install failed'
|
echo 'Error: yum install failed'
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -255,8 +251,6 @@ fi
|
||||||
|
|
||||||
# Vesta packages
|
# Vesta packages
|
||||||
yum -y --enablerepo=remi install $rpms
|
yum -y --enablerepo=remi install $rpms
|
||||||
|
|
||||||
# Return code check
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'Error: yum install failed'
|
echo 'Error: yum install failed'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue