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:
parent
ba661a6e3f
commit
168d056cf8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue