From cb324d91ad9ea656a5597a95c681e5400cbd3d49 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 17 Feb 2014 11:10:03 +0100 Subject: MDEV-5579 rpm postun scriptlet leaks exit code to rpm --- support-files/rpm/server-postun.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'support-files') 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 -- cgit v1.2.1