From ada13bf8228b149892d18cb41a71efb4d6052aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 8 Dec 2014 13:46:23 +0000 Subject: [PATCH] accidentally leaked to previous commit, reverting back --- roles/base/files/common-scripts/conditional-restart.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/roles/base/files/common-scripts/conditional-restart.sh b/roles/base/files/common-scripts/conditional-restart.sh index f4ac932a2e..f95ef741d7 100644 --- a/roles/base/files/common-scripts/conditional-restart.sh +++ b/roles/base/files/common-scripts/conditional-restart.sh @@ -10,13 +10,9 @@ rpm -q $PACKAGE INSTALLED=$? if [ $INSTALLED -eq 0 ]; then - if chkconfig $PACKAGE; then - echo "Package $PACKAGE installed. Attempting restart of $SERVICE." - /sbin/service $SERVICE restart - exit $? # Exit with the /sbin/service status code - else - echo "Package $PACKAGE not enabled. Skipping restart of $SERVICE." - fi + echo "Package $PACKAGE installed. Attempting restart of $SERVICE." + /sbin/service $SERVICE restart + exit $? # Exit with the /sbin/service status code fi # If the package wasn't installed, then pretend everything is fine.