[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug report] When stopped jail , ezjail-admin console is successfull



Hi.

When use ezjail-admin command with console option.
And jail is stopped.

# ezjail-admin console  C78

Above command will fail.
But successfull.

I applyed this.
# "$ezjail_forcestart}" -> "{" is nothing.
*******************************************************************************
--- /usr/local/bin/ezjail-admin.bk	2010-06-13 20:17:11.000000000 +0900
+++ /usr/local/bin/ezjail-admin	2011-07-27 14:08:15.000000000 +0900
@@ -1013,7 +1013,7 @@
   if [ -z "${ezjail_id}" ]; then
 
     # If force start is requested, try that
-    [ "$ezjail_forcestart}" ] || exerr "Error: Jail ${ezjail_name} appears not to be running\n  Start it first, or use '${ezjail_admin} console -f ${ezjail_name}' to force start."
+    [ "${ezjail_forcestart}" ] || exerr "Error: Jail ${ezjail_name} appears not to be running\n  Start it first, or use '${ezjail_admin} console -f ${ezjail_name}' to force start."
 
     # This one will also exerr on failure
     start_stop_jail_by_script onestart
*******************************************************************************

Best regard.