diff options
author | erdgeist <erdgeist@erdgeist.org> | 2010-01-11 04:06:54 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2010-01-11 04:06:54 +0000 |
commit | 7ffcc74f18c26ddce5cf8ccfc86e624a2c71c605 (patch) | |
tree | a21d27ccf6f940ecf6037c69006254641b1b9c5d /ezjail.sh | |
parent | e0948e713d2ffcbbdc8d636cb55015470c9e4986 (diff) |
Make non runnable jails stoppable, fourth attempt, non runnable now won't start now
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -53,17 +53,17 @@ do_cmd() | |||
53 | fi | 53 | fi |
54 | 54 | ||
55 | for ezjail in ${ezjail_list}; do | 55 | for ezjail in ${ezjail_list}; do |
56 | unset ezjail_config | 56 | unset ezjail_config ezjail_norun |
57 | 57 | ||
58 | [ -e "${ezjail_cfgs}/${ezjail}" ] && ezjail_config="${ezjail_cfgs}/${ezjail}" | 58 | [ -e "${ezjail_cfgs}/${ezjail}" ] && ezjail_config="${ezjail_cfgs}/${ezjail}" |
59 | [ -e "${ezjail_cfgs}/${ezjail}.norun" ] && ezjail_config="${ezjail_cfgs}/${ezjail}.norun" | 59 | [ -e "${ezjail_cfgs}/${ezjail}.norun" ] && ezjail_config="${ezjail_cfgs}/${ezjail}.norun" && ezjail_norun="YES" |
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%%.*}" |
66 | [ "${ezjail%.*}" != "${ezjail}" ] && echo -n " skipping ${ezjail}" && continue | 66 | [ "${ezjail%.*}" != "${ezjail}" -o "${ezjail_norun}" ] && echo -n " skipping ${ezjail}" && continue |
67 | 67 | ||
68 | # Read config file | 68 | # Read config file |
69 | . ${ezjail_config} | 69 | . ${ezjail_config} |