check_webservice_load.sh: adjust determin mysql service file if parallel installations are present.
This commit is contained in:
parent
4299375cee
commit
43eef62704
@ -228,8 +228,8 @@ if $check_mysql ; then
|
|||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
||||||
|
|
||||||
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^mysql" \
|
| grep -e "^mysql[^0-9]*\.service" \
|
||||||
| grep -e " enabled" \
|
| grep -E " enabled" \
|
||||||
| awk '{print$1}'\
|
| awk '{print$1}'\
|
||||||
| head -1)
|
| head -1)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user