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 else
# - Is Service exclusive controlled by systemd # - Is Service exclusive controlled by systemd
# - # -
if systemctl -t service list-unit-files \ if systemctl -t service list-unit-files \
| grep -e "^mysql" \ | grep -e "^mysql" \
| grep -q -E "(enabled|disabled|generated)" 2> /devnull ; then | grep -q -E "(enabled|disabled|generated)" 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" \
| awk '{print$1}'\ | awk '{print$1}' \
| head -1) | head -1)
fi fi
fi fi