install_mysql.sh: Fix some errors at splittet (\) commands.

This commit is contained in:
Christoph 2018-04-28 02:21:22 +02:00
parent 93829be6cd
commit b06ec92d30

View File

@ -915,14 +915,14 @@ if $SYSTEMD_EXISTS ; then
else
# - Is Service exclusive controlled by systemd
# -
if systemctl -t service list-unit-files \
| grep -e "^mysql" \
if systemctl -t service list-unit-files \
| grep -e "^mysql" \
| grep -q -E "(enabled|disabled|generated)" 2> /devnull ; then
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^mysql" \
| awk '{print$1}'\
| head -1)
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^mysql" \
| awk '{print$1}' \
| head -1)
fi
fi