aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-07-03 21:38:45 -0700
committerBrian Behlendorf <[email protected]>2013-07-03 21:56:05 -0700
commit168d056cf8ed073e17f008b9109ad3d37e63f172 (patch)
tree35ce8578159ee5b9ea3ebfd9f1991c7d7651192c /rpm/generic
parentba661a6e3f118fbf66ac11dafbe4cb7ac3fa51bd (diff)
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 <[email protected]> Closes #1376
Diffstat (limited to 'rpm/generic')
-rw-r--r--rpm/generic/zfs.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index 77f217dbe..c832404a6 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -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