diff options
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |