Skip to content

Commit

Permalink
Add conditional chkconfig to packaging
Browse files Browse the repository at this point in the history
Unconditionally exit with zero to avoid returning failures
from the scriptlets.  This should have been part of the
previous ba661a6 commit.

Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#1376
  • Loading branch information
behlendorf committed Jul 4, 2013
1 parent ba661a6 commit 168d056
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpm/generic/zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \;
%post
/sbin/ldconfig
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
exit 0

%preun
if [ $1 -eq 0 ] ; then
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
fi
exit 0

%postun -p /sbin/ldconfig

Expand Down

0 comments on commit 168d056

Please sign in to comment.