diff options
-rwxr-xr-x | ezjail-admin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index c923506..1748436 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -729,10 +729,10 @@ EOF | |||
729 | jail_pids=`pgrep $jail_ids` | 729 | jail_pids=`pgrep $jail_ids` |
730 | 730 | ||
731 | # expand pids to form a greppable expression | 731 | # expand pids to form a greppable expression |
732 | jail_grep=`echo $jail_pids | sed -E -e"s/ /)|(/g" -e"s/^/(/" -e"s/$/)/"` | 732 | jail_grep=`echo $jail_pids | sed -E -e"s/ / )|( /g" -e"s/^/( /" -e"s/$/ )/"` |
733 | 733 | ||
734 | IFS=_ | 734 | IFS=_ |
735 | ezjail_listener=`sockstat -46l | grep -E -e "\*:[[:digit:]]" | grep -E -e " ${jail_grep} "` | 735 | ezjail_listener=`sockstat -46l | grep -E -e "\*:[[:digit:]]" | grep -E -e "${jail_grep}"` |
736 | [ $? -eq 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}" | 736 | [ $? -eq 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}" |
737 | IFS=, | 737 | IFS=, |
738 | done | 738 | done |