From 6fbd92975f4b18559df2fdefae5068c7b7154855 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 26 Apr 2013 13:27:41 +0000 Subject: Only work on jails that have been filtered into ezjail_pass for the post-commands --- ezjail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezjail.sh b/ezjail.sh index 2e16e4b..56c2f94 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -105,7 +105,7 @@ do_cmd() # Configure settings that need to be done after the jail has been started 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:]' _` # Get the JID of the jail [ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return -- cgit v1.2.3