From afad488c730fba4837dd157701becab23b580675 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 9 Feb 2006 18:17:30 +0000 Subject: Condition check turned around --- ezjail-admin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index 23a0116..e1b60a0 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -61,7 +61,7 @@ create) [ -d ${ezjail_jailbase} ] || exerr "Error: base jail does not exist. Please run 'ezjail-admin update' first." # relative paths don't make sense in rc.scripts - [ ${ezjail_jaildir%%[!/]*} ] && exerr "Error: Need an absolute path in ezjail_jaildir, it currently is set to: ${ezjail_jaildir}." + [ ${ezjail_jaildir%%[!/]*} ] || exerr "Error: Need an absolute path in ezjail_jaildir, it currently is set to: ${ezjail_jaildir}." # jail names must not irritate file systems, excluding dots from this list # was done intentionally to permit foo.com style directory names, however, @@ -77,7 +77,7 @@ create) # if jail root specified on command line is not absolute, make it absolute # inside our jail directory - [ ${newjail_root%%[!/]*} ] && newjail_root=${ezjail_jaildir}/${newjail_root} + [ ${newjail_root%%[!/]*} ] || newjail_root=${ezjail_jaildir}/${newjail_root} # if jail root specified on command line does not lie within our jail # directory, we need to create a softlink -- cgit v1.2.3