summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin4
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