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:
erdgeist 2013-04-10 23:29:13 +00:00
parent 92db4874ab
commit c8694ac703

View File

@ -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
;;