summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-04-26 13:27:41 +0000
committererdgeist <erdgeist@erdgeist.org>2013-04-26 13:27:41 +0000
commit6fbd92975f4b18559df2fdefae5068c7b7154855 (patch)
tree4fb7bacf7954156dc40d477d7970fd056d0b90c1 /ezjail.sh
parent0ddb055c5a9fd528b0c01bd1a034dbcb7478b46a (diff)
Only work on jails that have been filtered into ezjail_pass for the post-commands
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 2e16e4b..56c2f94 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -105,7 +105,7 @@ do_cmd()
105 105
106 # Configure settings that need to be done after the jail has been started 106 # Configure settings that need to be done after the jail has been started
107 if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then 107 if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then
108 for ezjail in ${ezjail_list}; do 108 for ezjail in ${ezjail_pass}; do
109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _` 109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`
110 # Get the JID of the jail 110 # Get the JID of the jail
111 [ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return 111 [ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return