summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-04-10 23:29:13 +0000
committererdgeist <erdgeist@erdgeist.org>2013-04-10 23:29:13 +0000
commitc8694ac703e989f239d6e16044c9ad20e061a5eb (patch)
tree71947ea2875b1952fcfdaaa5aaf806638534c179
parent92db4874abbc070e8d22d82ee2bae9162913e464 (diff)
Do not attempt to chflags the root directory after it is gone, when wiping is requested on ezjail-admin delete. Thanks to Tom.
-rwxr-xr-xezjail-admin5
1 files changed, 4 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index a5f719a..3099826 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -838,8 +838,11 @@ delete)
838 zfs) 838 zfs)
839 /sbin/zfs destroy -r ${ezjail_jailzfs}/${ezjail_hostname} 839 /sbin/zfs destroy -r ${ezjail_jailzfs}/${ezjail_hostname}
840 ;; 840 ;;
841 *)
842 chflags -R noschg "${ezjail_rootdir}"
843 ;;
841 esac 844 esac
842 chflags -R noschg "${ezjail_rootdir}"; rm -rf "${ezjail_rootdir}" 845 rm -rf "${ezjail_rootdir}"
843 fi 846 fi
844 847
845 ;; 848 ;;