On Fri, Jul 01, 2005 at 12:12:48AM -0400, Stephen Gran wrote:
> HTTPDS="apache apache-ssl apache-perl apache2" # Give or take
> INSTALLED_HTTPDS=''
>
> for httpd in $HTTPDS; do
> if [ -d "/usr/share/doc/${httpd}" ]; then
> INSTALLED_HTTPDS="$httpd $INSTALLED_HTTPDS"
> fi
> done
already have some functionality for this in the webapps-common package
(see internal/httpd). though instead of looking for /usr/share/doc/$httpd,
i'm looking for /usr/sbin/$httpd. really testing for any reliably
present file from the packages' files list should work, but istr something
about eventually allowing for stripping /usr/share/doc off of debian
systems.
> db_set webapps-common/httpd/select_httpd "$INSTALLED_HTTPDS" || true
>
> (totally untested, of course)
that's basically the idea, yeah.
> > directories Include'd, and then grab out all the <VirtualHost></VirtualHost>
>
> This is harder.
dude, look what i just found:
/usr/sbin/apache -S 2>&1
sean
--
Attachment:
signature.asc
Description: Digital signature