Skip to content

Commit 08fafbc

Browse files
author
Serghey Rodin
committed
vesta-softaculous for rhel installer
1 parent fe93b08 commit 08fafbc

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

install/vst-install-rhel.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [ "$release" -eq 7 ]; then
2828
openssh-clients ImageMagick curl mc screen ftp zip unzip flex sqlite pcre
2929
sudo bc jwhois mailx lsof tar telnet rrdtool net-tools ntp GeoIP freetype
3030
fail2ban rsyslog iptables-services which vesta vesta-nginx vesta-php
31-
vim-common expect"
31+
vim-common expect vesta-ioncube vesta-softaculous"
3232
else
3333
software="nginx httpd mod_ssl mod_ruid2 mod_fcgid mod_extract_forwarded
3434
php php-common php-cli php-bcmath php-gd php-imap php-mbstring php-mcrypt
@@ -38,7 +38,8 @@ else
3838
postgresql-server postgresql-contrib phpPgAdmin e2fsprogs openssh-clients
3939
ImageMagick curl mc screen ftp zip unzip flex sqlite pcre sudo bc jwhois
4040
mailx lsof tar telnet rrdtool net-tools ntp GeoIP freetype fail2ban
41-
which vesta vesta-nginx vesta-php vim-common expect"
41+
which vesta vesta-nginx vesta-php vim-common expect vesta-ioncube
42+
vesta-softaculous"
4243
fi
4344

4445
# Defining help function
@@ -60,6 +61,7 @@ help() {
6061
-i, --iptables Install Iptables [yes|no] default: yes
6162
-b, --fail2ban Install Fail2ban [yes|no] default: yes
6263
-r, --remi Install Remi repo [yes|no] default: yes
64+
-o, --softaculous Install Softaculous [yes|no] default: yes
6365
-q, --quota Filesystem Quota [yes|no] default: no
6466
-l, --lang Default language default: en
6567
-y, --interactive Interactive install [yes|no] default: yes
@@ -146,6 +148,7 @@ for arg; do
146148
--iptables) args="${args}-i " ;;
147149
--fail2ban) args="${args}-b " ;;
148150
--remi) args="${args}-r " ;;
151+
--softaculous) args="${args}-o " ;;
149152
--quota) args="${args}-q " ;;
150153
--lang) args="${args}-l " ;;
151154
--interactive) args="${args}-y " ;;
@@ -161,7 +164,7 @@ done
161164
eval set -- "$args"
162165

163166
# Parsing arguments
164-
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
167+
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
165168
case $Option in
166169
a) apache=$OPTARG ;; # Apache
167170
n) nginx=$OPTARG ;; # Nginx
@@ -179,6 +182,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
179182
i) iptables=$OPTARG ;; # Iptables
180183
b) fail2ban=$OPTARG ;; # Fail2ban
181184
r) remi=$OPTARG ;; # Remi repo
185+
o) softaculous=$OPTARG ;; # Softaculous plugin
182186
q) quota=$OPTARG ;; # FS Quota
183187
l) lang=$OPTARG ;; # Language
184188
y) interactive=$OPTARG ;; # Interactive install
@@ -213,6 +217,7 @@ fi
213217
set_default_value 'iptables' 'yes'
214218
set_default_value 'fail2ban' 'yes'
215219
set_default_value 'remi' 'yes'
220+
set_default_value 'softaculous' 'yes'
216221
set_default_value 'quota' 'no'
217222
set_default_value 'interactive' 'yes'
218223
set_default_lang 'en'
@@ -359,6 +364,11 @@ if [ "$proftpd" = 'yes' ]; then
359364
echo ' - ProFTPD FTP Server'
360365
fi
361366

367+
# Softaculous
368+
if [ "$softaculous" = 'yes' ]; then
369+
echo -n ' - Softaculous Plugin'
370+
fi
371+
362372
# Firewall stack
363373
if [ "$iptables" = 'yes' ]; then
364374
echo -n ' - Iptables Firewall'
@@ -613,6 +623,9 @@ if [ "$postgresql" = 'no' ]; then
613623
software=$(echo "$software" | sed -e 's/php-pgsql//')
614624
software=$(echo "$software" | sed -e 's/phpPgAdmin//')
615625
fi
626+
if [ "$softaculous" = 'no' ]; then
627+
software=$(echo "$software" | sed -e 's/vesta-softaculous//')
628+
fi
616629
if [ "$iptables" = 'no' ] || [ "$fail2ban" = 'no' ]; then
617630
software=$(echo "$software" | sed -e 's/fail2ban//')
618631
fi
@@ -1334,6 +1347,11 @@ if [ "$quota" = 'yes' ]; then
13341347
$VESTA/bin/v-add-sys-quota
13351348
fi
13361349

1350+
# Enabling softaculous plugin
1351+
if [ "$softaculous" = 'yes' ]; then
1352+
$VESTA/bin/v-add-vesta-softaculous
1353+
fi
1354+
13371355
# Starting vesta service
13381356
chkconfig vesta on
13391357
service vesta start

0 commit comments

Comments
 (0)