@@ -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,52 +491,52 @@ 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
506506cp -r /etc/php7.0/* $vst_backups /php/ > /dev/null 2>&1
507507cp -r /etc/php5/* $vst_backups /php/ > /dev/null 2>&1
508508cp -r /etc/php/* $vst_backups /php/ > /dev/null 2>&1
509509
510- # Backing up Bind configuration
510+ # Backup Bind configuration
511511service bind9 stop > /dev/null 2>&1
512512cp -r /etc/bind/* $vst_backups /bind > /dev/null 2>&1
513513
514- # Backing up Vsftpd configuration
514+ # Backup Vsftpd configuration
515515service vsftpd stop > /dev/null 2>&1
516516cp /etc/vsftpd.conf $vst_backups /vsftpd > /dev/null 2>&1
517517
518518# Backing up ProFTPD configuration
519519service proftpd stop > /dev/null 2>&1
520520cp /etc/proftpd.conf $vst_backups /proftpd > /dev/null 2>&1
521521
522- # Backing up Exim configuration
522+ # Backup Exim configuration
523523service exim4 stop > /dev/null 2>&1
524524cp -r /etc/exim4/* $vst_backups /exim4 > /dev/null 2>&1
525525
526- # Backing up ClamAV configuration
526+ # Backup ClamAV configuration
527527service clamav-daemon stop > /dev/null 2>&1
528528cp -r /etc/clamav/* $vst_backups /clamav > /dev/null 2>&1
529529
530- # Backing up SpamAssassin configuration
530+ # Backup SpamAssassin configuration
531531service spamassassin stop > /dev/null 2>&1
532532cp -r /etc/spamassassin/* $vst_backups /spamassassin > /dev/null 2>&1
533533
534- # Backing up Dovecot configuration
534+ # Backup Dovecot configuration
535535service dovecot stop > /dev/null 2>&1
536536cp /etc/dovecot.conf $vst_backups /dovecot > /dev/null 2>&1
537537cp -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
540540service mysql stop > /dev/null 2>&1
541541killall -9 mysqld > /dev/null 2>&1
542542mv /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
549549fi
550550
551-
552551# Backup Vesta
553552service vesta stop > /dev/null 2>&1
554553cp -r $VESTA /* $vst_backups /vesta > /dev/null 2>&1
@@ -667,7 +666,7 @@ rm -f /usr/sbin/policy-rc.d
667666sed -i " s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
668667service ssh restart
669668
670- # Disable awstats cron
669+ # Disable AWStats cron
671670rm -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
677676echo " /usr/sbin/nologin" >> /etc/shells
678677
679- # NTP Synchronization
678+ # NTP Sync
680679echo ' #!/bin/sh' > /etc/cron.daily/ntpdate
681680echo " $( which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
682681chmod 775 /etc/cron.daily/ntpdate
0 commit comments