Add conditional chkconfig to packaging

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 <behlendorf1@llnl.gov>
Closes #1376
This commit is contained in:
Brian Behlendorf 2013-07-03 21:38:45 -07:00
parent ba661a6e3f
commit 168d056cf8
1 changed files with 2 additions and 0 deletions

View File

@ -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