diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-02-17 11:10:03 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-02-17 11:10:03 +0100 |
commit | cb324d91ad9ea656a5597a95c681e5400cbd3d49 (patch) | |
tree | c4e1020420fe82ac26338c83845d8d71d314ac01 /support-files | |
parent | 95f4bf1857dcbc987273dc5f3ade945c67c1687a (diff) | |
download | mariadb-git-cb324d91ad9ea656a5597a95c681e5400cbd3d49.tar.gz |
MDEV-5579 rpm postun scriptlet leaks exit code to rpm
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/rpm/server-postun.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support-files/rpm/server-postun.sh b/support-files/rpm/server-postun.sh index 652d59154ae..dcf67173a02 100644 --- a/support-files/rpm/server-postun.sh +++ b/support-files/rpm/server-postun.sh @@ -1,7 +1,8 @@ if [ $1 -ge 1 ]; then if [ -x %{_sysconfdir}/init.d/mysql ] ; then # only restart the server if it was alredy running - %{_sysconfdir}/init.d/mysql status > /dev/null 2>&1 && \ - %{_sysconfdir}/init.d/mysql restart + if %{_sysconfdir}/init.d/mysql status > /dev/null 2>&1; then + %{_sysconfdir}/init.d/mysql restart + fi fi fi |