@@ -84,7 +84,7 @@ gen_pass() {
8484 echo " $PASS "
8585}
8686
87- # Defning return code check function
87+ # Defining return code check function
8888check_result () {
8989 if [ $1 -ne 0 ]; then
9090 echo " Error: $2 "
222222
223223# Checking root permissions
224224if [ " x$( id -u) " != ' x0' ]; then
225- check_error 1 " Script can be run executed only by root"
225+ check_result 1 " Script can be run executed only by root"
226226fi
227227
228228# Checking admin user account
270270# Brief Info #
271271# ----------------------------------------------------------#
272272
273- # Printing nice ascii aslogo
273+ # Printing nice ascii as logo
274274clear
275275echo
276276echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_|'
@@ -704,7 +704,6 @@ chmod -R 750 $VESTA/data/queue
704704chmod 660 $VESTA /log/*
705705rm -f /var/log/vesta
706706ln -s $VESTA /log /var/log/vesta
707- chown admin:admin $VESTA /data/sessions
708707chmod 770 $VESTA /data/sessions
709708
710709# Generating vesta configuration
@@ -973,6 +972,7 @@ if [ "$mysql" = 'yes' ]; then
973972
974973 mkdir -p /var/lib/mysql
975974 chown mysql:mysql /var/lib/mysql
975+ mkdir -p /etc/my.cnf.d
976976
977977 if [ $release -ne 7 ]; then
978978 service=' mysqld'
@@ -1282,7 +1282,7 @@ command="sudo $VESTA/bin/v-update-sys-rrd"
12821282$VESTA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
12831283service crond restart
12841284
1285- # Building inititall rrd images
1285+ # Building initial rrd images
12861286$VESTA /bin/v-update-sys-rrd
12871287
12881288# Enabling file system quota
0 commit comments