docs: rework of chapter "Install with apache"

BTW: normalize installation-nginx.rst
This commit is contained in:
Markus Heiser 2020-04-06 17:59:06 +02:00
parent c81849cb5a
commit eb0d4646d8
7 changed files with 465 additions and 63 deletions

View file

@ -634,9 +634,15 @@ if [[ -z "${APACHE_SITES_AVAILABE}" ]]; then
fi
apache_is_installed() {
(command -v apachectl \
&& command -v a2ensite \
&& command -v a2dissite ) &>/dev/null
case $DIST_ID-$DIST_VERS in
ubuntu-*|debian-*)
(command -v apachectl \
&& command -v a2ensite \
&& command -v a2dissite ) &>/dev/null
;;
arch) (command -v httpd) ;;
fedora) (command -v httpd) ;;
esac
}
apache_reload() {