summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-11-15 19:13:21 +0000
committererdgeist <erdgeist@erdgeist.org>2006-11-15 19:13:21 +0000
commit8a6f906148ed9e758c42d605e83c11fd7d99a2f4 (patch)
tree97397211503212ec5be7c45f492b7302d9b0cb03
parent13b0fca2214474edf21e385a2cd8e553694e03fa (diff)
I suck. It was the correct way
-rwxr-xr-xezjail-admin4
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 37478f0..9ab376b 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 [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}." 424 [ -n "${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 [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}." 612 [ -n "${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."