@@ -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 ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_|'
@@ -705,7 +705,6 @@ chmod -R 750 $VESTA/data/queue
705705chmod 660 $VESTA /log/*
706706rm -f /var/log/vesta
707707ln -s $VESTA /log /var/log/vesta
708- chown admin:admin $VESTA /data/sessions
709708chmod 770 $VESTA /data/sessions
710709
711710# Generating vesta configuration
@@ -974,6 +973,7 @@ if [ "$mysql" = 'yes' ]; then
974973
975974 mkdir -p /var/lib/mysql
976975 chown mysql:mysql /var/lib/mysql
976+ mkdir -p /etc/my.cnf.d
977977
978978 if [ $release -ne 7 ]; then
979979 service=' mysqld'
@@ -1283,7 +1283,7 @@ command="sudo $VESTA/bin/v-update-sys-rrd"
12831283$VESTA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
12841284service crond restart
12851285
1286- # Building inititall rrd images
1286+ # Building initial rrd images
12871287$VESTA /bin/v-update-sys-rrd
12881288
12891289# Enabling file system quota
0 commit comments