accidentally leaked to previous commit, reverting back
This commit is contained in:
parent
09137e6de0
commit
ada13bf822
1 changed files with 3 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue