From ba6dc0fb3266c6999565b0eeb99e184beb9387d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Tue, 7 Oct 2014 18:14:00 +0200 Subject: [PATCH] Add a check for regular files in /etc/apache2/sites-enabled --- evocheck.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/evocheck.sh b/evocheck.sh index 41b5cef..28c1e00 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -58,6 +58,7 @@ IS_TOOMUCHDEBIANSYSMAINT=1 IS_USERLOGROTATE=1 IS_MODSECURITY=1 IS_APACHECTL=1 +IS_APACHESYMLINK=1 IS_SAMBAPINPRIORITY=1 IS_KERNELUPTODATE=1 @@ -336,6 +337,12 @@ if [ -e /etc/debian_version ]; then if [ "$IS_APACHECTL" = 1 ]; then is_installed apache2.2-common && (/usr/sbin/apache2ctl configtest 2>&1 |grep -q "^Syntax OK$" || echo 'IS_APACHECTL FAILED!') fi + + # Check if there is regular files in Apache sites-enabled. + if [ "IS_APACHESYMLINK" = 1 ]; then + is_installed apache2.2-common && \ + (stat -c %F /etc/apache2/sites-enabled/* | grep -q regular && echo 'IS_APACHESYMLINK FAILED!') + fi # Verification de la priorité du package samba si les backports sont utilisés if [ "$IS_SAMBAPINPRIORITY" = 1 ]; then