@@ -103,7 +103,7 @@ gen_pass() {
103103 echo " $PASS "
104104}
105105
106- # Defning return code check function
106+ # Defining return code check function
107107check_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
126126set_default_lang () {
127127 if [ -z " $lang " ]; then
128128 eval lang=$1
278278wget -q " c.vestacp.com/deb_signing.key" -O /dev/null
279279check_result $? " No access to Vesta repository"
280280
281- # Check installed packages
281+ # Checking installed packages
282282tmpfile=$( mktemp -p /tmp)
283283dpkg --get-selections > $tmpfile
284284for pkg in exim4 mysql-server apache2 nginx vesta; do
319319echo ' Vesta Control Panel'
320320echo -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
325325if [ " $nginx " = ' yes' ]; then
@@ -340,16 +340,16 @@ if [ "$named" = 'yes' ]; then
340340 echo ' - Bind DNS Server'
341341fi
342342
343- # Mail Stack
343+ # Mail stack
344344if [ " $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
359359fi
360360
361- # DB stack
361+ # Database stack
362362if [ " $mysql " = ' yes' ]; then
363363 echo ' - MySQL Database Server'
364364fi
@@ -491,53 +491,53 @@ cd $vst_backups
491491mkdir nginx apache2 php vsftpd proftpd bind exim4 dovecot clamd
492492mkdir spamassassin mysql postgresql mongodb vesta
493493
494- # Backing up nginx configuration
494+ # Backup nginx configuration
495495service nginx stop > /dev/null 2>&1
496496cp -r /etc/nginx/* $vst_backups /nginx > /dev/null 2>&1
497497
498- # Backing up Apache configuration
498+ # Backup Apache configuration
499499service apache2 stop > /dev/null 2>&1
500500cp -r /etc/apache2/* $vst_backups /apache2 > /dev/null 2>&1
501501rm -f /etc/apache2/conf.d/* > /dev/null 2>&1
502502
503- # Backing up PHP configuration
503+ # Backup PHP-FPM configuration
504504service php7.0-fpm stop > /dev/null 2>&1
505505service php5-fpm stop > /dev/null 2>&1
506506service php-fpm stop > /dev/null 2>&1
507507cp -r /etc/php7.0/* $vst_backups /php/ > /dev/null 2>&1
508508cp -r /etc/php5/* $vst_backups /php/ > /dev/null 2>&1
509509cp -r /etc/php/* $vst_backups /php/ > /dev/null 2>&1
510510
511- # Backing up Bind configuration
511+ # Backup Bind configuration
512512service bind9 stop > /dev/null 2>&1
513513cp -r /etc/bind/* $vst_backups /bind > /dev/null 2>&1
514514
515- # Backing up Vsftpd configuration
515+ # Backup Vsftpd configuration
516516service vsftpd stop > /dev/null 2>&1
517517cp /etc/vsftpd.conf $vst_backups /vsftpd > /dev/null 2>&1
518518
519519# Backing up ProFTPD configuration
520520service proftpd stop > /dev/null 2>&1
521521cp /etc/proftpd.conf $vst_backups /proftpd > /dev/null 2>&1
522522
523- # Backing up Exim configuration
523+ # Backup Exim configuration
524524service exim4 stop > /dev/null 2>&1
525525cp -r /etc/exim4/* $vst_backups /exim4 > /dev/null 2>&1
526526
527- # Backing up ClamAV configuration
527+ # Backup ClamAV configuration
528528service clamav-daemon stop > /dev/null 2>&1
529529cp -r /etc/clamav/* $vst_backups /clamav > /dev/null 2>&1
530530
531- # Backing up SpamAssassin configuration
531+ # Backup SpamAssassin configuration
532532service spamassassin stop > /dev/null 2>&1
533533cp -r /etc/spamassassin/* $vst_backups /spamassassin > /dev/null 2>&1
534534
535- # Backing up Dovecot configuration
535+ # Backup Dovecot configuration
536536service dovecot stop > /dev/null 2>&1
537537cp /etc/dovecot.conf $vst_backups /dovecot > /dev/null 2>&1
538538cp -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
541541service mysql stop > /dev/null 2>&1
542542killall -9 mysqld > /dev/null 2>&1
543543mv /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
550550fi
551551
552-
553552# Backup Vesta
554553service vesta stop > /dev/null 2>&1
555554cp -r $VESTA /* $vst_backups /vesta > /dev/null 2>&1
@@ -668,7 +667,7 @@ rm -f /usr/sbin/policy-rc.d
668667sed -i " s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
669668service ssh restart
670669
671- # Disable awstats cron
670+ # Disable AWStats cron
672671rm -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
678677echo " /usr/sbin/nologin" >> /etc/shells
679678
680- # NTP Synchronization
679+ # NTP Sync
681680echo ' #!/bin/sh' > /etc/cron.daily/ntpdate
682681echo " $( which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
683682chmod 775 /etc/cron.daily/ntpdate
0 commit comments