IS_EVOMAINTENANCE_FW: Fix wrong variable

This commit is contained in:
Benoît S. 2018-03-15 17:51:12 +01:00
parent 0e620b42d5
commit e5594f3f1b

View file

@ -352,7 +352,7 @@ if [ -e /etc/debian_version ]; then
fi
if [ "$IS_EVOMAINTENANCE_FW" = 1 ]; then
if [ -f "$f" ]; then
if [ -f "$MINIFW_FILE" ]; then
rulesNumber=$(grep -c "/sbin/iptables -A INPUT -p tcp --sport 5432 --dport 1024:65535 -s .* -m state --state ESTABLISHED,RELATED -j ACCEPT" "$MINIFW_FILE")
if [ "$rulesNumber" -lt 4 ]; then
echo 'IS_EVOMAINTENANCE_FW FAILED!'