Only work on jails that have been filtered into ezjail_pass for the post-commands
This commit is contained in:
parent
0ddb055c5a
commit
6fbd92975f
@ -105,7 +105,7 @@ do_cmd()
|
|||||||
|
|
||||||
# Configure settings that need to be done after the jail has been started
|
# Configure settings that need to be done after the jail has been started
|
||||||
if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then
|
if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then
|
||||||
for ezjail in ${ezjail_list}; do
|
for ezjail in ${ezjail_pass}; do
|
||||||
ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`
|
ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`
|
||||||
# Get the JID of the jail
|
# Get the JID of the jail
|
||||||
[ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return
|
[ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user