check_webservice_load.sh: adjust determin mysql service file if parallel installations are present.

This commit is contained in:
Christoph 2019-01-15 18:53:39 +01:00
parent 4299375cee
commit 43eef62704

View File

@ -228,8 +228,8 @@ if $check_mysql ; then
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^mysql" \
| grep -e " enabled" \
| grep -e "^mysql[^0-9]*\.service" \
| grep -E " enabled" \
| awk '{print$1}'\
| head -1)
fi