@@ -29,7 +29,8 @@ if [ "$release" = '16.04' ]; then
2929 mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
3030 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
3131 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
32- bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
32+ bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
33+ vesta-ioncube vesta-softaculous"
3334elif [ " $release " = ' 16.10' ]; then
3435 software=" nginx apache2 apache2-utils apache2.2-common
3536 apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
@@ -41,7 +42,8 @@ elif [ "$release" = '16.10' ]; then
4142 mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
4243 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
4344 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
44- bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
45+ bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
46+ vesta-ioncube vesta-softaculous"
4547else
4648 software=" nginx apache2 apache2-utils apache2.2-common
4749 apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
5355 mysql-client postgresql postgresql-contrib phppgadmin phpMyAdmin mc
5456 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
5557 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
56- bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
58+ bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common
59+ vesta-ioncube vesta-softaculous"
5760fi
5861
5962# Defining help function
@@ -74,6 +77,7 @@ help() {
7477 -t, --spamassassin Install SpamAssassin [yes|no] default: yes
7578 -i, --iptables Install Iptables [yes|no] default: yes
7679 -b, --fail2ban Install Fail2ban [yes|no] default: yes
80+ -o, --softaculous Install Softaculous [yes|no] default: yes
7781 -q, --quota Filesystem Quota [yes|no] default: no
7882 -l, --lang Default language default: en
7983 -y, --interactive Interactive install [yes|no] default: yes
@@ -160,6 +164,7 @@ for arg; do
160164 --spamassassin) args=" ${args} -t " ;;
161165 --iptables) args=" ${args} -i " ;;
162166 --fail2ban) args=" ${args} -b " ;;
167+ --softaculous) args=" ${args} -o " ;;
163168 --remi) args=" ${args} -r " ;;
164169 --quota) args=" ${args} -q " ;;
165170 --lang) args=" ${args} -l " ;;
176181eval set -- " $args "
177182
178183# Parsing arguments
179- while getopts " a:n:w:v:j:k:m:g:d:x:z:c:t:i:b:r:q:l:y:s:e:p:fh" Option; do
184+ while getopts " a:n:w:v:j:k:m:g:d:x:z:c:t:i:b:r:o: q:l:y:s:e:p:fh" Option; do
180185 case $Option in
181186 a) apache=$OPTARG ;; # Apache
182187 n) nginx=$OPTARG ;; # Nginx
@@ -194,6 +199,7 @@ while getopts "a:n:w:v:j:k:m:g:d:x:z:c:t:i:b:r:q:l:y:s:e:p:fh" Option; do
194199 i) iptables=$OPTARG ;; # Iptables
195200 b) fail2ban=$OPTARG ;; # Fail2ban
196201 r) remi=$OPTARG ;; # Remi repo
202+ o) softaculous=$OPTARG ;; # Softaculous plugin
197203 q) quota=$OPTARG ;; # FS Quota
198204 l) lang=$OPTARG ;; # Language
199205 y) interactive=$OPTARG ;; # Interactive install
227233fi
228234set_default_value ' iptables' ' yes'
229235set_default_value ' fail2ban' ' yes'
236+ set_default_value ' softaculous' ' yes'
230237set_default_value ' quota' ' no'
231238set_default_value ' interactive' ' yes'
232239set_default_lang ' en'
@@ -370,6 +377,11 @@ if [ "$proftpd" = 'yes' ]; then
370377 echo ' - ProFTPD FTP Server'
371378fi
372379
380+ # Softaculous
381+ if [ " $softaculous " = ' yes' ]; then
382+ echo -n ' - Softaculous Plugin'
383+ fi
384+
373385# Firewall stack
374386if [ " $iptables " = ' yes' ]; then
375387 echo -n ' - Iptables Firewall'
@@ -620,6 +632,9 @@ if [ "$postgresql" = 'no' ]; then
620632 software=$( echo " $software " | sed -e ' s/php-pgsql//' )
621633 software=$( echo " $software " | sed -e ' s/phppgadmin//' )
622634fi
635+ if [ " $softaculous " = ' no' ]; then
636+ software=$( echo " $software " | sed -e ' s/vesta-softaculous//' )
637+ fi
623638if [ " $iptables " = ' no' ] || [ " $fail2ban " = ' no' ]; then
624639 software=$( echo " $software " | sed -e ' s/fail2ban//' )
625640fi
@@ -1273,6 +1288,11 @@ if [ "$quota" = 'yes' ]; then
12731288 $VESTA /bin/v-add-sys-quota
12741289fi
12751290
1291+ # Enabling softaculous plugin
1292+ if [ " $softaculous " = ' yes' ]; then
1293+ $VESTA /bin/v-add-vesta-softaculous
1294+ fi
1295+
12761296# Starting Vesta service
12771297update-rc.d vesta defaults
12781298service vesta start
0 commit comments