diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-02-09 18:17:30 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-02-09 18:17:30 +0000 |
commit | afad488c730fba4837dd157701becab23b580675 (patch) | |
tree | b7d07576228d8cf48e70c9c76df1d2736e73bf78 | |
parent | cb4f5dd968ee511bb1ac4929451ea8b2113e32b1 (diff) |
Condition check turned around
-rwxr-xr-x | ezjail-admin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 23a0116..e1b60a0 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -61,7 +61,7 @@ create) | |||
61 | [ -d ${ezjail_jailbase} ] || exerr "Error: base jail does not exist. Please run 'ezjail-admin update' first." | 61 | [ -d ${ezjail_jailbase} ] || exerr "Error: base jail does not exist. Please run 'ezjail-admin update' first." |
62 | 62 | ||
63 | # relative paths don't make sense in rc.scripts | 63 | # relative paths don't make sense in rc.scripts |
64 | [ ${ezjail_jaildir%%[!/]*} ] && exerr "Error: Need an absolute path in ezjail_jaildir, it currently is set to: ${ezjail_jaildir}." | 64 | [ ${ezjail_jaildir%%[!/]*} ] || exerr "Error: Need an absolute path in ezjail_jaildir, it currently is set to: ${ezjail_jaildir}." |
65 | 65 | ||
66 | # jail names must not irritate file systems, excluding dots from this list | 66 | # jail names must not irritate file systems, excluding dots from this list |
67 | # was done intentionally to permit foo.com style directory names, however, | 67 | # was done intentionally to permit foo.com style directory names, however, |
@@ -77,7 +77,7 @@ create) | |||
77 | 77 | ||
78 | # if jail root specified on command line is not absolute, make it absolute | 78 | # if jail root specified on command line is not absolute, make it absolute |
79 | # inside our jail directory | 79 | # inside our jail directory |
80 | [ ${newjail_root%%[!/]*} ] && newjail_root=${ezjail_jaildir}/${newjail_root} | 80 | [ ${newjail_root%%[!/]*} ] || newjail_root=${ezjail_jaildir}/${newjail_root} |
81 | 81 | ||
82 | # if jail root specified on command line does not lie within our jail | 82 | # if jail root specified on command line does not lie within our jail |
83 | # directory, we need to create a softlink | 83 | # directory, we need to create a softlink |