@@ -30,7 +30,7 @@ if [ "$release" -eq 8 ]; then
3030 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
3131 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
3232 bsdmainutils cron vesta vesta-nginx vesta-php expect libmail-dkim-perl
33- unrar-free vim-common"
33+ unrar-free vim-common vesta-ioncube vesta-softaculous "
3434else
3535 software=" nginx apache2 apache2-utils apache2.2-common
3636 apache2-suexec-custom libapache2-mod-ruid2
4343 flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
4444 e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
4545 bsdmainutils cron vesta vesta-nginx vesta-php expect unrar-free
46- vim-common"
46+ vim-common vesta-ioncube vesta-softaculous "
4747fi
4848
4949# Defining help function
@@ -64,6 +64,7 @@ help() {
6464 -t, --spamassassin Install SpamAssassin [yes|no] default: yes
6565 -i, --iptables Install Iptables [yes|no] default: yes
6666 -b, --fail2ban Install Fail2ban [yes|no] default: yes
67+ -o, --softaculous Install Softaculous [yes|no] default: yes
6768 -q, --quota Filesystem Quota [yes|no] default: no
6869 -l, --lang Default language default: en
6970 -y, --interactive Interactive install [yes|no] default: yes
@@ -151,6 +152,7 @@ for arg; do
151152 --iptables) args=" ${args} -i " ;;
152153 --fail2ban) args=" ${args} -b " ;;
153154 --remi) args=" ${args} -r " ;;
155+ --softaculous) args=" ${args} -o " ;;
154156 --quota) args=" ${args} -q " ;;
155157 --lang) args=" ${args} -l " ;;
156158 --interactive) args=" ${args} -y " ;;
166168eval set -- " $args "
167169
168170# Parsing arguments
169- 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
171+ 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
170172 case $Option in
171173 a) apache=$OPTARG ;; # Apache
172174 n) nginx=$OPTARG ;; # Nginx
@@ -184,6 +186,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
184186 i) iptables=$OPTARG ;; # Iptables
185187 b) fail2ban=$OPTARG ;; # Fail2ban
186188 r) remi=$OPTARG ;; # Remi repo
189+ o) softaculous=$OPTARG ;; # Softaculous plugin
187190 q) quota=$OPTARG ;; # FS Quota
188191 l) lang=$OPTARG ;; # Language
189192 y) interactive=$OPTARG ;; # Interactive install
217220fi
218221set_default_value ' iptables' ' yes'
219222set_default_value ' fail2ban' ' yes'
223+ set_default_value ' softaculous' ' yes'
220224set_default_value ' quota' ' no'
221225set_default_value ' interactive' ' yes'
222226set_default_lang ' en'
@@ -360,6 +364,11 @@ if [ "$proftpd" = 'yes' ]; then
360364 echo ' - ProFTPD FTP Server'
361365fi
362366
367+ # Softaculous
368+ if [ " $softaculous " = ' yes' ]; then
369+ echo -n ' - Softaculous Plugin'
370+ fi
371+
363372# Firewall stack
364373if [ " $iptables " = ' yes' ]; then
365374 echo -n ' - Iptables Firewall'
@@ -592,6 +601,9 @@ if [ "$postgresql" = 'no' ]; then
592601 software=$( echo " $software " | sed -e ' s/php5-pgsql//' )
593602 software=$( echo " $software " | sed -e ' s/phppgadmin//' )
594603fi
604+ if [ " $softaculous " = ' no' ]; then
605+ software=$( echo " $software " | sed -e ' s/vesta-softaculous//' )
606+ fi
595607if [ " $iptables " = ' no' ] || [ " $fail2ban " = ' no' ]; then
596608 software=$( echo " $software " | sed -e ' s/fail2ban//' )
597609fi
@@ -1294,6 +1306,11 @@ if [ "$quota" = 'yes' ]; then
12941306 $VESTA /bin/v-add-sys-quota
12951307fi
12961308
1309+ # Enabling softaculous plugin
1310+ if [ " $softaculous " = ' yes' ]; then
1311+ $VESTA /bin/v-add-vesta-softaculous
1312+ fi
1313+
12971314# Starting vesta service
12981315update-rc.d vesta defaults
12991316service vesta start
0 commit comments