Implement IS_APACHE_CONFENABLED

This commit is contained in:
Benoît S. 2018-06-27 15:20:39 +02:00
parent fff5971310
commit d914dd9003

View file

@ -104,6 +104,7 @@ IS_EVOMAINTENANCE_FW=1
IS_EVOLIX_USER=1
IS_EVOACME_CRON=1
IS_EVOACME_LIVELINKS=1
IS_APACHE_CONFENABLED=1
#Proper to OpenBSD
IS_SOFTDEP=1
@ -794,6 +795,15 @@ if [ -e /etc/debian_version ]; then
done
fi
fi
if [ "$IS_APACHE_CONFENABLED" = 1 ]; then
# Starting from Jessie and Apache 2.4, /etc/apache2/conf.d/
# must be replaced by conf-available/ and config files symlinked
# to conf-enabled/
test -d /etc/apache2/conf.d/ && echo 'IS_APACHE_CONFENABLED FAILED!'
grep -q 'Include conf.d' /etc/apache2/apache2.conf && \
echo 'IS_APACHE_CONFENABLED FAILED!'
fi
fi