Fixed uninstallation unregistration: %postun -> %preun
authorlace <>
Thu, 22 Dec 2005 14:25:27 +0000 (14:25 +0000)
committerlace <>
Thu, 22 Dec 2005 14:25:27 +0000 (14:25 +0000)
captive.spec.in

index d470b52..23f83c7 100644 (file)
@@ -225,6 +225,14 @@ touch %{_var}/lock/subsys/@PACKAGE@
 %preun
 
 %if ! %{static}
+%preun fuse
+%endif
+/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \
+               /sbin/chkconfig --del @PACKAGE@
+%{_initrddir}/@PACKAGE@ stop
+rm -f %{_var}/lock/subsys/@PACKAGE@
+
+%if ! %{static}
 %preun install
 %endif
 %{_sbindir}/captive-install-fstab --remove
@@ -235,14 +243,6 @@ touch %{_var}/lock/subsys/@PACKAGE@
 rm -rf %{_var}/lib/@PACKAGE@/s-*
 rm -rf %{_var}/lib/@PACKAGE@/tmp/*
 
-%if ! %{static}
-%postun fuse
-%endif
-/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \
-               /sbin/chkconfig --del @PACKAGE@
-%{_initrddir}/@PACKAGE@ stop
-rm -f %{_var}/lock/subsys/@PACKAGE@
-
 %files
 %defattr(-,root,root)
 %doc README NEWS AUTHORS THANKS TODO