From 3a55e89f073d93278154fef9c5033ef9028fad23 Mon Sep 17 00:00:00 2001 From: cryx Date: Tue, 16 Feb 2010 22:02:10 +0000 Subject: fix the eval syntax --- ezjail.sh | 4 ++-- 1 file 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() # Fix backward compatibility issue eval ezjail_exec_start=\"\$jail_${ezjail}_exec_start\" eval ezjail_exec=\"\$jail_${ezjail}_exec\" - eval jail_${ezjail}_exec_start=${ezjail_exec_start:-${ezjail_exec}} + eval jail_${ezjail}_exec_start=\"\${ezjail_exec_start:-${ezjail_exec}}\" eval unset jail_${ezjail}_exec # Do we still have a root to run in? @@ -103,7 +103,7 @@ do_cmd() done # Pass control to jail script which does the actual work - [ "${ezjail_pass}" ] && sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass} + [ "${ezjail_pass}" ] && sh ${ezjail_rc_jail} one${action%crypto} ${ezjail_pass} if [ "${action}" = "start" ]; then ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _` -- cgit v1.2.3