summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-02-16 22:02:10 +0000
committercryx <cryx@h3q.com>2010-02-16 22:02:10 +0000
commit3a55e89f073d93278154fef9c5033ef9028fad23 (patch)
tree9604ab84858ea37555a2526ff465205a2cce3e1e /ezjail.sh
parent637f44b4c5d8ca07382323241d7e16d04d6b79df (diff)
fix the eval syntax
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 85f39a7..90a781b 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -80,7 +80,7 @@ do_cmd()
80 # Fix backward compatibility issue 80 # Fix backward compatibility issue
81 eval ezjail_exec_start=\"\$jail_${ezjail}_exec_start\" 81 eval ezjail_exec_start=\"\$jail_${ezjail}_exec_start\"
82 eval ezjail_exec=\"\$jail_${ezjail}_exec\" 82 eval ezjail_exec=\"\$jail_${ezjail}_exec\"
83 eval jail_${ezjail}_exec_start=${ezjail_exec_start:-${ezjail_exec}} 83 eval jail_${ezjail}_exec_start=\"\${ezjail_exec_start:-${ezjail_exec}}\"
84 eval unset jail_${ezjail}_exec 84 eval unset jail_${ezjail}_exec
85 85
86 # Do we still have a root to run in? 86 # Do we still have a root to run in?
@@ -103,7 +103,7 @@ do_cmd()
103 done 103 done
104 104
105 # Pass control to jail script which does the actual work 105 # Pass control to jail script which does the actual work
106 [ "${ezjail_pass}" ] && sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass} 106 [ "${ezjail_pass}" ] && sh ${ezjail_rc_jail} one${action%crypto} ${ezjail_pass}
107 107
108 if [ "${action}" = "start" ]; then 108 if [ "${action}" = "start" ]; then
109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _` 109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`