forked from evolix/evocheck
Fixed condition in IS_APACHEIPINALLOW.
This commit is contained in:
parent
97b064e426
commit
d4813d7280
|
@ -378,7 +378,8 @@ if [ -e /etc/debian_version ]; then
|
||||||
# Check if there is real IP addresses in Allow/Deny directives (no trailing space, inline comments or so).
|
# Check if there is real IP addresses in Allow/Deny directives (no trailing space, inline comments or so).
|
||||||
if [ "$IS_APACHEIPINALLOW" = 1 ]; then
|
if [ "$IS_APACHEIPINALLOW" = 1 ]; then
|
||||||
# Note: Replace "exit 1" by "print" in Perl code to debug it.
|
# Note: Replace "exit 1" by "print" in Perl code to debug it.
|
||||||
is_installed apache2.2-common && grep -IrE "(Allow|Deny) from" /etc/apache2/ |grep -v "from all" |perl -ne 'exit 1 unless (/from( \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})+$/)' || echo 'IS_APACHEIPINALLOW FAILED!'
|
is_installed apache2.2-common && \
|
||||||
|
(grep -IrE "(Allow|Deny) from" /etc/apache2/ |grep -v "from all" |perl -ne 'exit 1 unless (/from( \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})+$/)' || echo 'IS_APACHEIPINALLOW FAILED!')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if default Apache configuration file for munin is absent (or empty or commented).
|
# Check if default Apache configuration file for munin is absent (or empty or commented).
|
||||||
|
|
Loading…
Reference in a new issue