Dodana ovisnost o ipcalc i carnet-tools-cn, popravak postinsta
[fail2ban-cn.git] / debian / postinst
index 3d47138..a669349 100755 (executable)
@@ -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