summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-11-13 16:12:15 +0000
committererdgeist <erdgeist@erdgeist.org>2013-11-13 16:12:15 +0000
commitc95e27fc2f3847f6f80d74c55f268235ab1c9fcc (patch)
tree2a07abf57e1a796ba5bfc3324078169b0a81407e
parent438b0ed74b6a6b2964e73253cc8f94c2316c682e (diff)
Fix grepping for jid. This did not work for jids over 99999. Thanks to Mathieu Arnold
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 27aedb8..8330d01 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -261,7 +261,7 @@ fetchjailinfo () {
261 fi 261 fi
262 262
263 [ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return 263 [ -f "/var/run/jail_${ezjail_safename}.id" ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return
264 jls | grep -q -E "^ +${ezjail_id} " || unset ezjail_id 264 jls | grep -q -E "^ *${ezjail_id} " || unset ezjail_id
265} 265}
266 266
267# fill the base jail - this function is used by install and update 267# fill the base jail - this function is used by install and update