forked from evolix/evocheck
Check de la syntaxe de la configuration d'Apache.
This commit is contained in:
parent
f775b64e06
commit
73319a43dd
2
TODO
2
TODO
|
@ -14,5 +14,5 @@
|
|||
- [DONE] Si raid soft, verifier que mdadm est bien configuré
|
||||
- [DONE] Verifier qu'il y a bien des "auto <if>" et non "allow-hotplug <if>" dans /e/n/i
|
||||
- [DONE] Verifier qu'il n'y a pas deux debian-sys-maint dans mysql.user ! (et qu'il y en a au moins un)
|
||||
- Verifier que apachectl est OK
|
||||
- [DONE] Verifier que apachectl est OK
|
||||
- [DONE] Vérifier sur que les backups sont en place
|
||||
|
|
|
@ -55,6 +55,7 @@ IS_AUTOIF=1
|
|||
IS_TOOMUCHDEBIANSYSMAINT=1
|
||||
IS_USERLOGROTATE=1
|
||||
IS_MODSECURITY=1
|
||||
IS_APACHECTL=1
|
||||
|
||||
# Source configuration file
|
||||
test -f /etc/evocheck.cf && . /etc/evocheck.cf
|
||||
|
@ -303,3 +304,8 @@ fi
|
|||
if [ "$IS_MODSECURITY" = 1 ]; then
|
||||
is_pack_web && (is_installed libapache2-mod-security2 && test -e /etc/apache2/conf.d/mod-security2.conf || echo 'IS_MODSECURITY')
|
||||
fi
|
||||
|
||||
# Verification de la syntaxe de la conf d'Apache
|
||||
if [ "$IS_APACHECTL" =1 ]; then
|
||||
is_installed apache2.2-common && (/usr/sbin/apache2ctl configtest 2>&1 |grep "^Syntax OK$" || echo 'IS_APACHECTL FAILED!')
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue