summaryrefslogtreecommitdiff
path: root/support-files/rpm
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-05-13 17:54:15 +0200
committerAlexey Bychko <alexey.bychko@mariadb.com>2021-06-16 12:26:43 +0700
commit35b57c37bbbfa116da4a454df5892984550b151a (patch)
tree98666c117b3c475dc70b1815348feb3a5ffdd07d /support-files/rpm
parentc307dc6efde682c0768dc900818f4c0b418f9c6f (diff)
downloadmariadb-git-35b57c37bbbfa116da4a454df5892984550b151a.tar.gz
MDEV-25617 10.5.10 upgrade: "scriptlet / line 6 : [: is-active : binary operator expected"
Diffstat (limited to 'support-files/rpm')
-rw-r--r--support-files/rpm/server-posttrans.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/rpm/server-posttrans.sh b/support-files/rpm/server-posttrans.sh
index 1525b592735..3250423da8f 100644
--- a/support-files/rpm/server-posttrans.sh
+++ b/support-files/rpm/server-posttrans.sh
@@ -3,7 +3,7 @@ if [ -r %{restart_flag} ] ; then
# only restart the server if it was alredy 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