$0 is /etc/rc here, so doing rm -f "${0}" would leave the jail without /etc/rc after the first start.

This commit is contained in:
cryx 2010-02-16 22:19:49 +00:00
parent 63548f93ed
commit 95fe262379

View File

@ -679,7 +679,7 @@ create)
#
case "$1" in
*start)
rm -f "${0}"
rm -f "/etc/rc.d/ezjail-config"
for ezjail_flavour in /ezjail.flavour.*; do
[ -x "${ezjail_flavour}" ] && "${ezjail_flavour}"
rm -f "${ezjail_flavour}"