diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-05-13 17:54:15 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-05-19 16:03:24 +0200 |
commit | 9ecf9a644c57be61a8f1399ce677d72f5865a770 (patch) | |
tree | 6debb3f574a7f0a18f890f3e736f9391581dd74c /support-files | |
parent | db8fb408243452a4e8772fbf92f8c4083a38bad1 (diff) | |
download | mariadb-git-9ecf9a644c57be61a8f1399ce677d72f5865a770.tar.gz |
MDEV-25617 10.5.10 upgrade: "scriptlet / line 6 : [: is-active : binary operator expected"
Diffstat (limited to 'support-files')
-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 313274c6140..d91ff65e04f 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 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 |