diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-05-13 17:54:15 +0200 |
---|---|---|
committer | Alexey Bychko <alexey.bychko@mariadb.com> | 2021-06-16 12:26:43 +0700 |
commit | 35b57c37bbbfa116da4a454df5892984550b151a (patch) | |
tree | 98666c117b3c475dc70b1815348feb3a5ffdd07d /support-files/rpm | |
parent | c307dc6efde682c0768dc900818f4c0b418f9c6f (diff) | |
download | mariadb-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.sh | 2 |
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 |