Skip to content

Commit 62a8c4e

Browse files
author
Serghey Rodin
committed
vesta-softaculous for debian installer
1 parent 08fafbc commit 62a8c4e

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

install/vst-install-debian.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
3434
else
3535
software="nginx apache2 apache2-utils apache2.2-common
3636
apache2-suexec-custom libapache2-mod-ruid2
@@ -43,7 +43,7 @@ else
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"
4747
fi
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 " ;;
@@ -166,7 +168,7 @@ done
166168
eval 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
@@ -217,6 +220,7 @@ else
217220
fi
218221
set_default_value 'iptables' 'yes'
219222
set_default_value 'fail2ban' 'yes'
223+
set_default_value 'softaculous' 'yes'
220224
set_default_value 'quota' 'no'
221225
set_default_value 'interactive' 'yes'
222226
set_default_lang 'en'
@@ -360,6 +364,11 @@ if [ "$proftpd" = 'yes' ]; then
360364
echo ' - ProFTPD FTP Server'
361365
fi
362366

367+
# Softaculous
368+
if [ "$softaculous" = 'yes' ]; then
369+
echo -n ' - Softaculous Plugin'
370+
fi
371+
363372
# Firewall stack
364373
if [ "$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//')
594603
fi
604+
if [ "$softaculous" = 'no' ]; then
605+
software=$(echo "$software" | sed -e 's/vesta-softaculous//')
606+
fi
595607
if [ "$iptables" = 'no' ] || [ "$fail2ban" = 'no' ]; then
596608
software=$(echo "$software" | sed -e 's/fail2ban//')
597609
fi
@@ -1294,6 +1306,11 @@ if [ "$quota" = 'yes' ]; then
12941306
$VESTA/bin/v-add-sys-quota
12951307
fi
12961308

1309+
# Enabling softaculous plugin
1310+
if [ "$softaculous" = 'yes' ]; then
1311+
$VESTA/bin/v-add-vesta-softaculous
1312+
fi
1313+
12971314
# Starting vesta service
12981315
update-rc.d vesta defaults
12991316
service vesta start

0 commit comments

Comments
 (0)