Skip to content

Commit ee03eff

Browse files
author
Serghey Rodin
committed
udapted package defenition
1 parent e08a123 commit ee03eff

File tree

1 file changed

+19
-41
lines changed

1 file changed

+19
-41
lines changed

install/vst-install-ubuntu.sh

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,24 @@ release="$(lsb_release -s -r)"
1818
codename="$(lsb_release -s -c)"
1919
vestacp="$VESTA/install/$VERSION/$release"
2020

21-
if [ "$release" = '16.04' ] || [ "$release" = '18.04' ]; then
22-
software="nginx apache2 apache2-utils apache2.2-common
23-
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
24-
libapache2-mod-fcgid libapache2-mod-php php php-common php-cgi
25-
php-mysql php-curl php-fpm php-pgsql awstats webalizer vsftpd
26-
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
27-
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
28-
roundcube-mysql roundcube-plugins mysql-server mysql-common
29-
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
30-
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
31-
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
32-
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
33-
vesta-ioncube vesta-softaculous apparmor-utils"
34-
elif [ "$release" = '16.10' ] || [ "$release" = '17.10' ]; then
35-
software="nginx apache2 apache2-utils apache2.2-common
36-
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
37-
libapache2-mod-fcgid libapache2-mod-php7.0 php7.0 php7.0-common
38-
php7.0-cgi php7.0-mysql php7.0-curl php7.0-fpm php7.0-pgsql awstats
39-
webalizer vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
40-
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core
41-
roundcube-mysql roundcube-plugins mysql-server mysql-common
42-
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
43-
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
44-
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
45-
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
46-
vesta-ioncube vesta-softaculous apparmor-utils"
47-
else
48-
software="nginx apache2 apache2-utils apache2.2-common
49-
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
50-
libapache2-mod-fcgid libapache2-mod-php5 php5 php5-common php5-cgi
51-
php5-mysql php5-curl php5-fpm php5-pgsql awstats webalizer vsftpd
52-
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
53-
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
54-
roundcube-mysql roundcube-plugins mysql-server mysql-common
55-
mysql-client postgresql postgresql-contrib phppgadmin phpMyAdmin mc
56-
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
57-
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
58-
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
59-
vesta-ioncube vesta-softaculous"
21+
# Defining software pack for all distros
22+
software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
23+
apparmor-utils awstats bc bind9 bsdmainutils bsdutils clamav-daemon
24+
cron curl dnsutils dovecot-imapd dovecot-pop3d e2fslibs e2fsprogs exim4
25+
exim4-daemon-heavy expect fail2ban flex ftp git idn imagemagick
26+
libapache2-mod-fcgid libapache2-mod-php libapache2-mod-rpaf
27+
libapache2-mod-ruid2 lsof mc mysql-client mysql-common mysql-server nginx
28+
ntpdate php-cgi php-common php-curl php-fpm phpmyadmin php-mysql
29+
phppgadmin php-pgsql postgresql postgresql-contrib proftpd-basic quota
30+
roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
31+
sudo vesta vesta-ioncube vesta-nginx vesta-php vesta-softaculous
32+
vim-common vsftpd webalizer whois zip"
33+
34+
# Fix for old releases
35+
if [[ ${release:0:2} -lt 16 ]]; then
36+
software=$(echo "$software" |sed -e "s/php /php5 /")
37+
software=$(echo "$software" |sed -e "s/php-/php5-/")
38+
software=$(echo "$software" |sed -e "s/mod-php/mod-php5/")
6039
fi
6140

6241
# Defining help function
@@ -1267,7 +1246,6 @@ fi
12671246

12681247
# Adding default domain
12691248
$VESTA/bin/v-add-domain admin $servername
1270-
codename="$codename:$(echo $vpass:$servername | base64)"
12711249

12721250
# Adding cron jobs
12731251
command="sudo $VESTA/bin/v-update-sys-queue disk"
@@ -1320,7 +1298,7 @@ $VESTA/bin/v-add-cron-vesta-autoupdate
13201298
wget vestacp.com/notify/?$codename -O /dev/null -q
13211299

13221300
# Comparing hostname and IP
1323-
host_ip=$(host $servername| head -n 1 | awk '{print $NF}')
1301+
host_ip=$(host $servername| head -n 1 |awk '{print $NF}')
13241302
if [ "$host_ip" = "$ip" ]; then
13251303
ip="$servername"
13261304
fi

0 commit comments

Comments
 (0)