summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 49d43cb..ae4ffb2 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -50,8 +50,9 @@ do_cmd()
50 fi 50 fi
51 51
52 for ezjail in ${ezjail_list}; do 52 for ezjail in ${ezjail_list}; do
53 # If jail is temporary disabled (dot in name), skip it 53 # If jail is temporary disabled (dot in name), skip it for starts
54 [ -f "${ezjail_prefix}/etc/ezjail/${ezjail}.norun" -o "${ezjail%.*}" != "${ezjail}" ] && echo -n " skipping ${ezjail}" && continue 54 case "${action}" in *stop) ezjail=${ezjail%%.*};; esac
55 [ "${ezjail%.*}" != "${ezjail}" ] && echo -n " skipping ${ezjail}" && continue
55 56
56 # Check for jails config 57 # Check for jails config
57 [ ! -r "${ezjail_prefix}/etc/ezjail/${ezjail}" ] && echo " Warning: Jail ${ezjail} not found." && continue 58 [ ! -r "${ezjail_prefix}/etc/ezjail/${ezjail}" ] && echo " Warning: Jail ${ezjail} not found." && continue