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 9ab376b..37478f0 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -421,7 +421,7 @@ delete)
421 fetchjailinfo $1 421 fetchjailinfo $1
422 422
423 # check for existence of jail in our records 423 # check for existence of jail in our records
424 [ -n "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}." 424 [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
425 425
426 # if jail is still running, refuse to go any further 426 # if jail is still running, refuse to go any further
427 [ -n "${ezjail_id}" ] && exerr "Error: Jail appears to be still running, stop it first." 427 [ -n "${ezjail_id}" ] && exerr "Error: Jail appears to be still running, stop it first."
@@ -609,7 +609,7 @@ config)
609 fetchjailinfo $1 609 fetchjailinfo $1
610 610
611 # check for existence of jail in our records 611 # check for existence of jail in our records
612 [ -n "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}." 612 [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
613 613
614 # Nothing to be configured? 614 # Nothing to be configured?
615 [ -z "${ezjail_setrunnable}" -a -z "${ezjail_new_name}" -a -z "${ezjail_imageaction}" ] && echo "Warning: No config option specified." 615 [ -z "${ezjail_setrunnable}" -a -z "${ezjail_new_name}" -a -z "${ezjail_imageaction}" ] && echo "Warning: No config option specified."