Skip to content

Commit 5c7fd09

Browse files
Merge pull request hestiacp#1599 from ioannidesalex/patch-43
Cosmetic changes
2 parents c1c0443 + 3ecce92 commit 5c7fd09

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,53 +491,53 @@ 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
service php-fpm stop > /dev/null 2>&1
507507
cp -r /etc/php7.0/* $vst_backups/php/ > /dev/null 2>&1
508508
cp -r /etc/php5/* $vst_backups/php/ > /dev/null 2>&1
509509
cp -r /etc/php/* $vst_backups/php/ > /dev/null 2>&1
510510

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

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

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

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

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

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

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

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

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

671-
# Disable awstats cron
670+
# Disable AWStats cron
672671
rm -f /etc/cron.d/awstats
673672

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

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

0 commit comments

Comments
 (0)