Skip to content

Commit 3ecce92

Browse files
Cosmetic changes
1 parent 54cae50 commit 3ecce92

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

install/vst-install-ubuntu.sh

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ gen_pass() {
103103
echo "$PASS"
104104
}
105105

106-
# Defning return code check function
106+
# Defining return code check function
107107
check_result() {
108108
if [ $1 -ne 0 ]; then
109109
echo "Error: $2"
@@ -122,7 +122,7 @@ set_default_value() {
122122
fi
123123
}
124124

125-
# Define function to set default language value
125+
# Defining function to set default language value
126126
set_default_lang() {
127127
if [ -z "$lang" ]; then
128128
eval lang=$1
@@ -278,7 +278,7 @@ fi
278278
wget -q "c.vestacp.com/deb_signing.key" -O /dev/null
279279
check_result $? "No access to Vesta repository"
280280

281-
# Check installed packages
281+
# Checking installed packages
282282
tmpfile=$(mktemp -p /tmp)
283283
dpkg --get-selections > $tmpfile
284284
for pkg in exim4 mysql-server apache2 nginx vesta; do
@@ -319,7 +319,7 @@ echo
319319
echo ' Vesta Control Panel'
320320
echo -e "\n\n"
321321

322-
echo 'Following software will be installed on your system:'
322+
echo 'The following software will be installed on your system:'
323323

324324
# Web stack
325325
if [ "$nginx" = 'yes' ]; then
@@ -340,16 +340,16 @@ if [ "$named" = 'yes' ]; then
340340
echo ' - Bind DNS Server'
341341
fi
342342

343-
# Mail Stack
343+
# Mail stack
344344
if [ "$exim" = 'yes' ]; then
345-
echo -n ' - Exim mail server'
345+
echo -n ' - Exim Mail Server'
346346
if [ "$clamd" = 'yes' ] || [ "$spamd" = 'yes' ] ; then
347347
echo -n ' + '
348348
if [ "$clamd" = 'yes' ]; then
349-
echo -n 'Antivirus '
349+
echo -n 'ClamAV'
350350
fi
351351
if [ "$spamd" = 'yes' ]; then
352-
echo -n 'Antispam'
352+
echo -n 'SpamAssassin'
353353
fi
354354
fi
355355
echo
@@ -358,7 +358,7 @@ if [ "$exim" = 'yes' ]; then
358358
fi
359359
fi
360360

361-
# DB stack
361+
# Database stack
362362
if [ "$mysql" = 'yes' ]; then
363363
echo ' - MySQL Database Server'
364364
fi
@@ -491,52 +491,52 @@ cd $vst_backups
491491
mkdir nginx apache2 php vsftpd proftpd bind exim4 dovecot clamd
492492
mkdir spamassassin mysql postgresql mongodb vesta
493493

494-
# Backing up nginx configuration
494+
# Backup nginx configuration
495495
service nginx stop > /dev/null 2>&1
496496
cp -r /etc/nginx/* $vst_backups/nginx >/dev/null 2>&1
497497

498-
# Backing up Apache configuration
498+
# Backup Apache configuration
499499
service apache2 stop > /dev/null 2>&1
500500
cp -r /etc/apache2/* $vst_backups/apache2 > /dev/null 2>&1
501501
rm -f /etc/apache2/conf.d/* > /dev/null 2>&1
502502

503-
# Backing up PHP configuration
503+
# Backup PHP-FPM configuration
504504
service php7.0-fpm stop > /dev/null 2>&1
505505
service php5-fpm stop > /dev/null 2>&1
506506
cp -r /etc/php7.0/* $vst_backups/php/ > /dev/null 2>&1
507507
cp -r /etc/php5/* $vst_backups/php/ > /dev/null 2>&1
508508
cp -r /etc/php/* $vst_backups/php/ > /dev/null 2>&1
509509

510-
# Backing up Bind configuration
510+
# Backup Bind configuration
511511
service bind9 stop > /dev/null 2>&1
512512
cp -r /etc/bind/* $vst_backups/bind > /dev/null 2>&1
513513

514-
# Backing up Vsftpd configuration
514+
# Backup Vsftpd configuration
515515
service vsftpd stop > /dev/null 2>&1
516516
cp /etc/vsftpd.conf $vst_backups/vsftpd > /dev/null 2>&1
517517

518518
# Backing up ProFTPD configuration
519519
service proftpd stop > /dev/null 2>&1
520520
cp /etc/proftpd.conf $vst_backups/proftpd > /dev/null 2>&1
521521

522-
# Backing up Exim configuration
522+
# Backup Exim configuration
523523
service exim4 stop > /dev/null 2>&1
524524
cp -r /etc/exim4/* $vst_backups/exim4 > /dev/null 2>&1
525525

526-
# Backing up ClamAV configuration
526+
# Backup ClamAV configuration
527527
service clamav-daemon stop > /dev/null 2>&1
528528
cp -r /etc/clamav/* $vst_backups/clamav > /dev/null 2>&1
529529

530-
# Backing up SpamAssassin configuration
530+
# Backup SpamAssassin configuration
531531
service spamassassin stop > /dev/null 2>&1
532532
cp -r /etc/spamassassin/* $vst_backups/spamassassin > /dev/null 2>&1
533533

534-
# Backing up Dovecot configuration
534+
# Backup Dovecot configuration
535535
service dovecot stop > /dev/null 2>&1
536536
cp /etc/dovecot.conf $vst_backups/dovecot > /dev/null 2>&1
537537
cp -r /etc/dovecot/* $vst_backups/dovecot > /dev/null 2>&1
538538

539-
# Backing up MySQL/MariaDB configuration and data
539+
# Backup MySQL/MariaDB configuration and data
540540
service mysql stop > /dev/null 2>&1
541541
killall -9 mysqld > /dev/null 2>&1
542542
mv /var/lib/mysql $vst_backups/mysql/mysql_datadir > /dev/null 2>&1
@@ -548,7 +548,6 @@ if [ "$release" = '16.04' ] && [ -e '/etc/init.d/mysql' ]; then
548548
mysqld --initialize-insecure
549549
fi
550550

551-
552551
# Backup Vesta
553552
service vesta stop > /dev/null 2>&1
554553
cp -r $VESTA/* $vst_backups/vesta > /dev/null 2>&1
@@ -667,7 +666,7 @@ rm -f /usr/sbin/policy-rc.d
667666
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
668667
service ssh restart
669668

670-
# Disable awstats cron
669+
# Disable AWStats cron
671670
rm -f /etc/cron.d/awstats
672671

673672
# Set directory color
@@ -676,7 +675,7 @@ echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
676675
# Register /usr/sbin/nologin
677676
echo "/usr/sbin/nologin" >> /etc/shells
678677

679-
# NTP Synchronization
678+
# NTP Sync
680679
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
681680
echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
682681
chmod 775 /etc/cron.daily/ntpdate

0 commit comments

Comments
 (0)