MDEV-25617 10.5.10 upgrade: "scriptlet / line 6 : [: is-active : binary operator expected"

This commit is contained in:
Sergei Golubchik 2021-05-13 17:54:15 +02:00
parent db8fb40824
commit 9ecf9a644c

View file

@ -3,7 +3,7 @@ if [ -r %{restart_flag} ] ; then
# only restart the server if it was already running
if [ -x /usr/bin/systemctl ] ; then
/usr/bin/systemctl daemon-reload > /dev/null 2>&1
if [ /usr/bin/systemctl is-active mysql ]; then
if /usr/bin/systemctl is-active mysql; then
/usr/bin/systemctl restart mysql > /dev/null 2>&1
else
/usr/bin/systemctl try-restart mariadb.service > /dev/null 2>&1