[PC-BSD Commits] r17416 - pcbsd/current/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Mon Jun 25 08:15:40 PDT 2012


Author: kris
Date: 2012-06-25 15:15:40 +0000 (Mon, 25 Jun 2012)
New Revision: 17416

Modified:
   pcbsd/current/src-sh/warden/scripts/backend/deletejail.sh
Log:

Fix a bug removing a jail which has snapshots



Modified: pcbsd/current/src-sh/warden/scripts/backend/deletejail.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/deletejail.sh	2012-06-25 15:12:20 UTC (rev 17415)
+++ pcbsd/current/src-sh/warden/scripts/backend/deletejail.sh	2012-06-25 15:15:40 UTC (rev 17416)
@@ -45,7 +45,7 @@
 if [ $? -eq 0 ] ; then
   # Create ZFS mount
   tank=`getZFSTank "$JDIR"`
-  zfs destroy ${tank}${JDIR}/${IP}
+  zfs destroy -r ${tank}${JDIR}/${IP}
 else
   chflags -R noschg "${JDIR}/${IP}"
   rm -rf "${JDIR}/${IP}"



More information about the Commits mailing list