nutools/legacy/instinc/httpd_profile

65 lines
1.5 KiB
Bash

# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
case "$httpd_profile" in
macosx+apache2.2)
logdir=/var/log/apache2
apachedir=/etc/apache2
apachectl=apachectl
confname=httpd.conf
avsitesname=
sitesname=sites
htdocsdir=/Library/WebServer/Documents
;;
macosx+apache1.3)
logdir=/var/log/httpd
apachedir=/etc/httpd
apachectl=apachectl
confname=httpd.conf
avsitesname=
sitesname=sites
htdocsdir=/Library/WebServer/Documents
;;
etch+apache2.2)
logdir=/var/log/apache2
apachedir=/etc/apache2
apachectl=apache2ctl
confname=apache2.conf
avsitesname=sites-available
sitesname=sites-enabled
htdocsdir=/var/www
;;
etch+apache1.3)
logdir=/var/log/apache
apachedir=/etc/apache
apachectl=apachectl
confname=httpd.conf
avsitesname=
sitesname=
htdocsdir=/var/www
;;
redhat5+apache2.2)
logdir=/var/log/httpd
apachedir=/etc/httpd
apachectl=apachectl
confname=conf/httpd.conf
avsitesname=
sitesname=sites
htdocsdir=/var/www/html
;;
*)
# valeurs par défaut, si aucun profil connu n'est défini
# correspond à la configuration macosx+apache1.3
logdir=/var/log/httpd
apachedir=/etc/httpd
apachectl=apachectl
confname=httpd.conf
avsitesname=
sitesname=sites
htdocsdir=/Library/WebServer/Documents
;;
esac
apacheconf="$apachedir/$confname"
avsitesdir="${avsitesname:+$apachedir/$avsitesname}"
sitesdir="$apachedir/$sitesname"