$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:
parent
63548f93ed
commit
95fe262379
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user