Skip to content

Commit 4b226fa

Browse files
Merge pull request hestiacp#1207 from fliker09/master
Small code and spell check fixes for rhel installer
2 parents c076d66 + 9ab28c5 commit 4b226fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install/vst-install-rhel.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ gen_pass() {
8484
echo "$PASS"
8585
}
8686

87-
# Defning return code check function
87+
# Defining return code check function
8888
check_result() {
8989
if [ $1 -ne 0 ]; then
9090
echo "Error: $2"
@@ -222,7 +222,7 @@ fi
222222

223223
# Checking root permissions
224224
if [ "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"
226226
fi
227227

228228
# Checking admin user account
@@ -270,7 +270,7 @@ fi
270270
# Brief Info #
271271
#----------------------------------------------------------#
272272

273-
# Printing nice ascii aslogo
273+
# Printing nice ascii as logo
274274
clear
275275
echo
276276
echo ' _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_|'
@@ -705,7 +705,6 @@ chmod -R 750 $VESTA/data/queue
705705
chmod 660 $VESTA/log/*
706706
rm -f /var/log/vesta
707707
ln -s $VESTA/log /var/log/vesta
708-
chown admin:admin $VESTA/data/sessions
709708
chmod 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"
12841284
service 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

Comments
 (0)