summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2010-01-11 04:01:30 +0000
committererdgeist <erdgeist@erdgeist.org>2010-01-11 04:01:30 +0000
commite0948e713d2ffcbbdc8d636cb55015470c9e4986 (patch)
tree6268475a6036613d4f7d3ea2af061632b0a5dc61 /ezjail.sh
parentfeedbc6d52002183283e60ce2cc6e0d407e4e2cf (diff)
Make non runnable jails stoppable, third attempt, works now
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/ezjail.sh b/ezjail.sh
index d7f4e26..2bde07f 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -55,11 +55,11 @@ do_cmd()
55 for ezjail in ${ezjail_list}; do 55 for ezjail in ${ezjail_list}; do
56 unset ezjail_config 56 unset ezjail_config
57 57
58 [ -e "${ezjail_jailcfgs}/${ezjail}" ] && ezjail_config="${ezjail_jailcfgs}/${ezjail}" 58 [ -e "${ezjail_cfgs}/${ezjail}" ] && ezjail_config="${ezjail_cfgs}/${ezjail}"
59 [ -e "${ezjail_jailcfgs}/${ezjail}.norun" ] && ezjail_config="${ezjail_jailcfgs}/${ezjail}.norun" 59 [ -e "${ezjail_cfgs}/${ezjail}.norun" ] && ezjail_config="${ezjail_cfgs}/${ezjail}.norun"
60 60
61 # Check for jails config 61 # Check for jails config
62 [ -f "${ezjail_config}" ] || echo " Warning: Jail ${ezjail} not found." && continue 62 [ ! -f "${ezjail_config}" ] && echo " Warning: Jail ${ezjail} not found." && continue
63 63
64 # If jail is temporary disabled (dot in name), skip it for starts 64 # If jail is temporary disabled (dot in name), skip it for starts
65 [ "${ezjail_stop}" ] && ezjail="${ezjail%%.*}" 65 [ "${ezjail_stop}" ] && ezjail="${ezjail%%.*}"