[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tiny fix for ezjail-admin delete -w



On 29.05.10 21:07, Piotr Kucharski wrote:

==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8<

--- /usr/local/bin/ezjail-admin.org     2010-05-29 21:04:59.403489397 +0200
+++ /usr/local/bin/ezjail-admin 2010-05-29 21:05:07.727252266 +0200
@@ -781,6 +781,7 @@
       /sbin/zfs destroy -r ${ezjail_jailzfs}/${ezjail_hostname}
     ;;
     esac
+    chflags noschg "${ezjail_rootdir}/var/empty"
     rm -rf "${ezjail_rootdir}"
   fi

==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ==== 8<

Thanks for the submission, I changed it to:

    chflags -R noschg "${ezjail_rootdir}"; rm -rf "${ezjail_rootdir}"

since I don't want to be surprised by other directories becoming system
immutable in the future.

Regards,

  erdgeist

https://erdgeist.org/cvsweb/ezjail/ezjail-admin.diff?r1=1.258&r2=1.259&f=h