summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index de91655..e343e6e 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -278,7 +278,7 @@ create)
278 # if a directory at the specified jail root already exists, refuse to 278 # if a directory at the specified jail root already exists, refuse to
279 # install. Empty root dirs are considered okay, sometimes they are 279 # install. Empty root dirs are considered okay, sometimes they are
280 # mount points to be filled by ezjail. 280 # mount points to be filled by ezjail.
281 [ -d ${ezjail_rootdir} ] && [ "`ls -A ${ezjail_rootdir} | wc -l`" -eq 0 ] && ezjail_rootdirempty="YES" 281 [ -d ${ezjail_rootdir} -a -z "`ls -I ${ezjail_rootdir}`" ] && ezjail_rootdirempty="YES"
282 [ -e ${ezjail_rootdir} -a -z "${ezjail_rootdirempty}" -a -z "${ezjail_exists}" ] && exerr "Error: the specified jail root ${ezjail_rootdir} already exists." 282 [ -e ${ezjail_rootdir} -a -z "${ezjail_rootdirempty}" -a -z "${ezjail_exists}" ] && exerr "Error: the specified jail root ${ezjail_rootdir} already exists."
283 283
284 # if jail root specified on command line does not lie within our jail 284 # if jail root specified on command line does not lie within our jail