Skip to content

Commit

Permalink
* munge.spec: Moved %pre to %post to remove the chkconfig droppings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dun committed Dec 22, 2004
1 parent b46de0e commit 62972ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* HISTORY, META, NEWS, TODO: Updated for 0.4.1 release.

* munge.spec:
Added %pre to remove chkconfig droppings from the "-1 priority" bug.
Added %post to remove chkconfig droppings from the "-1 priority" bug.

* src/etc/munge.init:
Fixed bug preventing priorities from being recognized by chkconfig.
Expand Down
10 changes: 3 additions & 7 deletions munge.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $Id: munge.spec,v 1.27 2004/12/22 01:25:37 dun Exp $
# $Id: munge.spec,v 1.28 2004/12/22 01:52:23 dun Exp $

Name: munge
Version: 0
Expand Down Expand Up @@ -35,18 +35,14 @@ DESTDIR="$RPM_BUILD_ROOT" make install
%clean
rm -rf "$RPM_BUILD_ROOT"

%pre
#
%post
/sbin/ldconfig %{_libdir}
# Remove chkconfig droppings from the "-1 priority" bug.
#
if [ -L /etc/rc.d/rc0.d/K-1munge ]; then
find /etc/rc.d/rc?.d/ -type l -name "[SK]-1munge" -exec rm -f {} \;
/sbin/chkconfig --del munge
/sbin/chkconfig --add munge
fi

%post
/sbin/ldconfig %{_libdir}
if [ $1 = 1 ]; then
/sbin/chkconfig --add munge
fi
Expand Down

0 comments on commit 62972ff

Please sign in to comment.