projects
/
fail2ban-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodana ovisnost o ipcalc i carnet-tools-cn, popravak postinsta
[fail2ban-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
3d47138
..
a669349
100755
(executable)
--- 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"
# 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
if grep -q '^ignoreip' "$CONF"; then
IGNOREIP=$(grep '^ignoreip' "$CONF")
if ! echo "$IGNOREIP" | grep -q "$NETADDR"; then