Optimize OS/release/version detection for faster execution #70

Merged
benpro merged 86 commits from fast-debian-check into master 2019-04-05 11:01:57 +02:00
Showing only changes of commit fc3d2e28cf - Show all commits

View file

@ -446,7 +446,7 @@ if is_debian; then
|| failed "IS_APACHEMUNIN" "mising munin plugins for Apache"
else
pattern="/server-status-[[:alnum:]]{4,}"
{ grep -q -s -E "^env.url.*${pattern}" /etc/munin/plugin-conf.d/munin-node \
{ grep -r -q -s -E "^env.url.*${pattern}" /etc/munin/plugin-conf.d \
&& { grep -q -s -E "${pattern}" /etc/apache2/apache2.conf \
|| grep -q -s -E "${pattern}" /etc/apache2/mods-enabled/status.conf;
};