Fix mysqld start service (#232)
This commit is contained in:
parent
d67a2222d4
commit
37384d4ce2
@ -346,7 +346,7 @@ establish_mysql_conn(){
|
||||
$MYSQL -e ";" >/dev/null 2>&1
|
||||
ERRCODE=$?
|
||||
if [ $ERRCODE -ne 0 ]; then
|
||||
systemctl ${MYSQL_PACKAGE} start >/dev/null 2>&1
|
||||
systemctl start ${MYSQL_PACKAGE} >/dev/null 2>&1
|
||||
$MYSQL -e ";" >/dev/null 2>&1 || { echo "FAILURE"; exit 1; }
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user