summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin6
1 files changed, 3 insertions, 3 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 6de5a64..249f312 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -210,7 +210,7 @@ create)
210 210
211 # check for a sane image size and split it up in blocks 211 # check for a sane image size and split it up in blocks
212 if [ "${ezjail_imagesize}" ]; then 212 if [ "${ezjail_imagesize}" ]; then
213 _val=`echo "${ezjail_imagesize}"|tr GMKBWX gmkbwx|sed -Ees:g:km:g -es:m:kk:g -es:k:*2b:g -es:b:*128w:g -es:w:*4\ :g -e"s:(^|[^0-9])0x:\1\0X:g" -ey:x:*:|bc` 213 _val=`echo "${ezjail_imagesize}"|tr GMKBWX gmkbwx|sed -Ees:g:km:g -es:m:kk:g -es:k:"*2b":g -es:b:"*128w":g -es:w:"*4 ":g -e"s:(^|[^0-9])0x:\1\0X:g" -ey:x:"*":|bc`
214 [ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize})." 214 [ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize})."
215 ezjail_imageblockcount=`echo ${_val} / 1048576 | bc` 215 ezjail_imageblockcount=`echo ${_val} / 1048576 | bc`
216 ezjail_imagerestbytes=`echo ${_val} % 1048576 | bc` 216 ezjail_imagerestbytes=`echo ${_val} % 1048576 | bc`
@@ -393,10 +393,10 @@ create)
393 393
394 # check, whether some host system services do listen on the Jails IP 394 # check, whether some host system services do listen on the Jails IP
395 TIFS=${IFS}; IFS=_ 395 TIFS=${IFS}; IFS=_
396 ezjail_listener=`sockstat -4 -l | grep ${ezjail_ip}:[[:digit:]]` 396 ezjail_listener=`sockstat -4 -l | grep "${ezjail_ip}:[[:digit:]]"`
397 [ $? = 0 ] && echo -e "Warning: Some services already seem to be listening on IP ${ezjail_ip}\n This may cause some confusion, here they are:\n${ezjail_listener}" 397 [ $? = 0 ] && echo -e "Warning: Some services already seem to be listening on IP ${ezjail_ip}\n This may cause some confusion, here they are:\n${ezjail_listener}"
398 398
399 ezjail_listener=`sockstat -4 -l | grep \*:[[:digit:]]` 399 ezjail_listener=`sockstat -4 -l | grep "*:[[:digit:]]"`
400 [ $? = 0 ] && echo -e "Warning: Some services already seem to be listening on all IP, (including ${ezjail_ip})\n This may cause some confusion, here they are:\n${ezjail_listener}" 400 [ $? = 0 ] && echo -e "Warning: Some services already seem to be listening on all IP, (including ${ezjail_ip})\n This may cause some confusion, here they are:\n${ezjail_listener}"
401 IFS=${TIFS} 401 IFS=${TIFS}
402 402