+Remove stale sandbox chroot directories owned by 'captive.captive'
authorshort <>
Tue, 23 Sep 2003 17:16:10 +0000 (17:16 +0000)
committershort <>
Tue, 23 Sep 2003 17:16:10 +0000 (17:16 +0000)
captive.spec.in
debian/captive.postrm

index 586333b..655cb83 100644 (file)
@@ -140,6 +140,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun
 /sbin/ldconfig
+# Remove stale sandbox chroot directories owned by 'captive.captive':
+rm -rf %{_var}/lib/@PACKAGE@/sandbox-server-*
 
 %files
 %defattr(-,root,root)
index 922c79c..ec879a1 100755 (executable)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
+# Remove stale sandbox chroot directories owned by 'captive.captive':
+rm -rf /var/lib/captive/sandbox-server-*
+
+
 if [ "$1" = "purge" ] ; then
        deluser --quiet captive > /dev/null || true
        # group may be already deleted by deluser(8)