X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=fda11a040169be16d56027d8e0646fa3ec55f476;hb=00b7e03072be97390b39838cd7a9f55aaac7d63d;hp=eb8c4f2ac5c0547ba1a19f3b46f8eee94ac0613c;hpb=ad6aedb9016c5ab9dbc0ac73830206dc71025930;p=ossec-hids-cn.git diff --git a/debian/postinst b/debian/postinst index eb8c4f2..fda11a0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -49,7 +49,7 @@ script=' BEGIN { FS = "\"" } -/^[ \t]*/ { +/^[[:space:]]*/ { if (max < $2) max = $2 } @@ -57,10 +57,12 @@ END { print max }; ' -sid=100000 if [ -e "$local_rules" ]; then sid=$(awk "$script" "$local_rules") fi +if [ -z "$sid" ]; then + sid=100000 +fi # update local rules with our policy if [ -e "$local_rules" ]; then @@ -78,7 +80,7 @@ cp-update --comment '' \ Events ignored - + 1002 ^sophie|^smartd Events ignored @@ -86,14 +88,14 @@ cp-update --comment '' \ - + 3303 Events ignored - + 3356 - Ignore blacklisted mail... + Ignore blacklisted mail EOF