mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
udapted package defenition
This commit is contained in:
parent
e08a123642
commit
ee03eff016
1 changed files with 19 additions and 41 deletions
|
@ -18,45 +18,24 @@ release="$(lsb_release -s -r)"
|
||||||
codename="$(lsb_release -s -c)"
|
codename="$(lsb_release -s -c)"
|
||||||
vestacp="$VESTA/install/$VERSION/$release"
|
vestacp="$VESTA/install/$VERSION/$release"
|
||||||
|
|
||||||
if [ "$release" = '16.04' ] || [ "$release" = '18.04' ]; then
|
# Defining software pack for all distros
|
||||||
software="nginx apache2 apache2-utils apache2.2-common
|
software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
|
||||||
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
|
apparmor-utils awstats bc bind9 bsdmainutils bsdutils clamav-daemon
|
||||||
libapache2-mod-fcgid libapache2-mod-php php php-common php-cgi
|
cron curl dnsutils dovecot-imapd dovecot-pop3d e2fslibs e2fsprogs exim4
|
||||||
php-mysql php-curl php-fpm php-pgsql awstats webalizer vsftpd
|
exim4-daemon-heavy expect fail2ban flex ftp git idn imagemagick
|
||||||
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
|
libapache2-mod-fcgid libapache2-mod-php libapache2-mod-rpaf
|
||||||
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
|
libapache2-mod-ruid2 lsof mc mysql-client mysql-common mysql-server nginx
|
||||||
roundcube-mysql roundcube-plugins mysql-server mysql-common
|
ntpdate php-cgi php-common php-curl php-fpm phpmyadmin php-mysql
|
||||||
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
|
phppgadmin php-pgsql postgresql postgresql-contrib proftpd-basic quota
|
||||||
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
|
roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
|
||||||
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
|
sudo vesta vesta-ioncube vesta-nginx vesta-php vesta-softaculous
|
||||||
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
|
vim-common vsftpd webalizer whois zip"
|
||||||
vesta-ioncube vesta-softaculous apparmor-utils"
|
|
||||||
elif [ "$release" = '16.10' ] || [ "$release" = '17.10' ]; then
|
# Fix for old releases
|
||||||
software="nginx apache2 apache2-utils apache2.2-common
|
if [[ ${release:0:2} -lt 16 ]]; then
|
||||||
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
|
software=$(echo "$software" |sed -e "s/php /php5 /")
|
||||||
libapache2-mod-fcgid libapache2-mod-php7.0 php7.0 php7.0-common
|
software=$(echo "$software" |sed -e "s/php-/php5-/")
|
||||||
php7.0-cgi php7.0-mysql php7.0-curl php7.0-fpm php7.0-pgsql awstats
|
software=$(echo "$software" |sed -e "s/mod-php/mod-php5/")
|
||||||
webalizer vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
|
|
||||||
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core
|
|
||||||
roundcube-mysql roundcube-plugins mysql-server mysql-common
|
|
||||||
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
|
|
||||||
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
|
|
||||||
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
|
|
||||||
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
|
|
||||||
vesta-ioncube vesta-softaculous apparmor-utils"
|
|
||||||
else
|
|
||||||
software="nginx apache2 apache2-utils apache2.2-common
|
|
||||||
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
|
|
||||||
libapache2-mod-fcgid libapache2-mod-php5 php5 php5-common php5-cgi
|
|
||||||
php5-mysql php5-curl php5-fpm php5-pgsql awstats webalizer vsftpd
|
|
||||||
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
|
|
||||||
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
|
|
||||||
roundcube-mysql roundcube-plugins mysql-server mysql-common
|
|
||||||
mysql-client postgresql postgresql-contrib phppgadmin phpMyAdmin mc
|
|
||||||
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
|
|
||||||
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
|
|
||||||
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
|
|
||||||
vesta-ioncube vesta-softaculous"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Defining help function
|
# Defining help function
|
||||||
|
@ -1267,7 +1246,6 @@ fi
|
||||||
|
|
||||||
# Adding default domain
|
# Adding default domain
|
||||||
$VESTA/bin/v-add-domain admin $servername
|
$VESTA/bin/v-add-domain admin $servername
|
||||||
codename="$codename:$(echo $vpass:$servername | base64)"
|
|
||||||
|
|
||||||
# Adding cron jobs
|
# Adding cron jobs
|
||||||
command="sudo $VESTA/bin/v-update-sys-queue disk"
|
command="sudo $VESTA/bin/v-update-sys-queue disk"
|
||||||
|
@ -1320,7 +1298,7 @@ $VESTA/bin/v-add-cron-vesta-autoupdate
|
||||||
wget vestacp.com/notify/?$codename -O /dev/null -q
|
wget vestacp.com/notify/?$codename -O /dev/null -q
|
||||||
|
|
||||||
# Comparing hostname and IP
|
# Comparing hostname and IP
|
||||||
host_ip=$(host $servername| head -n 1 | awk '{print $NF}')
|
host_ip=$(host $servername| head -n 1 |awk '{print $NF}')
|
||||||
if [ "$host_ip" = "$ip" ]; then
|
if [ "$host_ip" = "$ip" ]; then
|
||||||
ip="$servername"
|
ip="$servername"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue