Skip to content

Commit fe93b08

Browse files
author
Serghey Rodin
committed
adedd vim-common + improved formatting: 79 characters per line
1 parent 651ba4c commit fe93b08

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

install/vst-install-ubuntu.sh

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ 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"
32+
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
3333
elif [ "$release" = '16.10' ]; then
3434
software="nginx apache2 apache2-utils apache2.2-common
3535
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
36-
libapache2-mod-fcgid libapache2-mod-php7.0 php7.0 php7.0-common php7.0-cgi
37-
php7.0-mysql php7.0-curl php7.0-fpm php7.0-pgsql awstats webalizer vsftpd
38-
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
39-
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
36+
libapache2-mod-fcgid libapache2-mod-php7.0 php7.0 php7.0-common
37+
php7.0-cgi php7.0-mysql php7.0-curl php7.0-fpm php7.0-pgsql awstats
38+
webalizer vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
39+
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core
4040
roundcube-mysql roundcube-plugins mysql-server mysql-common
4141
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
4242
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
4343
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
44-
bsdmainutils cron vesta vesta-nginx vesta-php expect"
44+
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
4545
else
4646
software="nginx apache2 apache2-utils apache2.2-common
4747
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
@@ -53,7 +53,7 @@ else
5353
mysql-client postgresql postgresql-contrib phppgadmin phpMyAdmin mc
5454
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
5555
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
56-
bsdmainutils cron vesta vesta-nginx vesta-php expect"
56+
bsdmainutils cron vesta vesta-nginx vesta-php expect vim-common"
5757
fi
5858

5959
# Defining help function
@@ -458,7 +458,8 @@ check_result $? 'apt-get upgrade failed'
458458

459459
# Installing nginx repo
460460
apt=/etc/apt/sources.list.d
461-
echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" > $apt/nginx.list
461+
echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \
462+
> $apt/nginx.list
462463
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
463464
apt-key add /tmp/nginx_signing.key
464465

@@ -1000,11 +1001,12 @@ fi
10001001
if [ "$postgresql" = 'yes' ]; then
10011002
wget $vestacp/postgresql/pg_hba.conf -O /etc/postgresql/*/main/pg_hba.conf
10021003
service postgresql restart
1003-
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$vpass'" 2>/dev/null
1004+
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$vpass'"
10041005

10051006
# Configuring phpPgAdmin
10061007
if [ "$apache" = 'yes' ]; then
1007-
wget $vestacp/pga/phppgadmin.conf -O /etc/apache2/conf.d/phppgadmin.conf
1008+
wget $vestacp/pga/phppgadmin.conf \
1009+
-O /etc/apache2/conf.d/phppgadmin.conf
10081010
fi
10091011
wget $vestacp/pga/config.inc.php -O /etc/phppgadmin/config.inc.php
10101012
fi
@@ -1113,7 +1115,8 @@ if [ "$spamd" = 'yes' ]; then
11131115
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
11141116
service spamassassin start
11151117
check_result $? "spamassassin start failed"
1116-
if [[ $(systemctl list-unit-files | grep spamassassin) =~ "disabled" ]]; then
1118+
unit_files="$(systemctl list-unit-files |grep spamassassin)"
1119+
if [[ "$unit_files" =~ "disabled" ]]; then
11171120
systemctl enable spamassassin
11181121
fi
11191122
fi
@@ -1138,7 +1141,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11381141
/etc/roundcube/plugins/password/config.inc.php
11391142
r="$(gen_pass)"
11401143
mysql -e "CREATE DATABASE roundcube"
1141-
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
1144+
mysql -e "GRANT ALL ON roundcube.*
1145+
TO roundcube@localhost IDENTIFIED BY '$r'"
11421146
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
11431147
if [ "$release" = '16.04' ]; then
11441148
mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php

0 commit comments

Comments
 (0)