Do not attempt to chflags the root directory after it is gone, when wiping is requested on ezjail-admin delete. Thanks to Tom.
This commit is contained in:
parent
92db4874ab
commit
c8694ac703
@ -838,8 +838,11 @@ delete)
|
||||
zfs)
|
||||
/sbin/zfs destroy -r ${ezjail_jailzfs}/${ezjail_hostname}
|
||||
;;
|
||||
*)
|
||||
chflags -R noschg "${ezjail_rootdir}"
|
||||
;;
|
||||
esac
|
||||
chflags -R noschg "${ezjail_rootdir}"; rm -rf "${ezjail_rootdir}"
|
||||
rm -rf "${ezjail_rootdir}"
|
||||
fi
|
||||
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user