X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=fail2ban-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=a669349b552a071f0d5c4eaa17fe8a252d7872f5;hp=3d4713833efdd19b2485d4ab52a37bfd7ad92581;hb=HEAD;hpb=25004d7f65cc5d8f80bbb02a9c1e2d1cdaf6aa25 diff --git a/debian/postinst b/debian/postinst index 3d47138..a669349 100755 --- a/debian/postinst +++ b/debian/postinst @@ -48,7 +48,7 @@ if [ -e "$CONF" ]; then # add network address and class if needed cp_get_netaddr || true NETADDR="$RET" - IGNOREIP=$(grep '^ignoreip' "$CONF") + IGNOREIP=$(grep '^ignoreip' "$CONF" || true) if grep -q '^ignoreip' "$CONF"; then IGNOREIP=$(grep '^ignoreip' "$CONF") if ! echo "$IGNOREIP" | grep -q "$NETADDR"; then