summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-02-17 11:10:03 +0100
committerSergei Golubchik <sergii@pisem.net>2014-02-17 11:10:03 +0100
commitcb324d91ad9ea656a5597a95c681e5400cbd3d49 (patch)
treec4e1020420fe82ac26338c83845d8d71d314ac01 /support-files
parent95f4bf1857dcbc987273dc5f3ade945c67c1687a (diff)
downloadmariadb-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.sh5
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