Skip to content
Browse files

fix grep match in inc/

  • Loading branch information...
centminmod committed Sep 30, 2014
1 parent be8b9fd commit 71fa28da3d23cc266bf92425076c19f85b7ce328
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/
@@ -76,7 +76,7 @@ echo ""
read -ep "Enter the SSH port number you want to change to: " PORTNUM
if [ -f /etc/csf/csf.conf ]; then
CHECKNEWPORTNUM=$(cat /etc/csf/csf.conf | egrep '^TCP_IN|^TCP_OUT|^UDP_IN|^UDP_OUT' | grep $PORTNUM)
CHECKNEWPORTNUM=$(cat /etc/csf/csf.conf | egrep '^TCP_IN|^TCP_OUT|^UDP_IN|^UDP_OUT' | grep -w $PORTNUM)
if [[ "$CHECKNEWPORTNUM" ]]; then
echo "the new port $PORTNUM is already in use by other software defined by CSF Firewall"
echo "please re-run menu option 16 and try a different port"

0 comments on commit 71fa28d

Please sign in to comment.
You can’t perform that action at this time.