summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-02-16 22:19:49 +0000
committercryx <cryx@h3q.com>2010-02-16 22:19:49 +0000
commit95fe26237974636d36a3d59805103c38618bb79a (patch)
tree647f8d48c4704a742fb3be59c33917956b08576f
parent63548f93edf8b96987a5bcbc50655fd6a26f3bcb (diff)
$0 is /etc/rc here, so doing rm -f "${0}" would leave the jail without /etc/rc after the first start.
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 19aea96..9c50a51 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -679,7 +679,7 @@ create)
679# 679#
680case "$1" in 680case "$1" in
681 *start) 681 *start)
682 rm -f "${0}" 682 rm -f "/etc/rc.d/ezjail-config"
683 for ezjail_flavour in /ezjail.flavour.*; do 683 for ezjail_flavour in /ezjail.flavour.*; do
684 [ -x "${ezjail_flavour}" ] && "${ezjail_flavour}" 684 [ -x "${ezjail_flavour}" ] && "${ezjail_flavour}"
685 rm -f "${ezjail_flavour}" 685 rm -f "${ezjail_flavour}"