[Webapps-common-discuss] webapps-common/internal httpd,1.5,1.6
seanius at haydn.debian.org
seanius at haydn.debian.org
Wed Apr 5 07:30:03 UTC 2006
- Previous message: [Webapps-common-discuss] webapps-common/doc Makefile, 1.3,
1.4 PHP-Policy-Manual-DRAFT.sgml, 1.5,
1.6 Webapps-Policy-Manual-DRAFT.sgml, 1.19, 1.20
- Next message: [Webapps-common-discuss] webapps-common/debian changelog, 1.9,
1.10 webapps-common.templates, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/webapps-common/webapps-common/internal
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv31160/internal
Modified Files:
httpd
Log Message:
another nice chunkawork. the debconf/config-script process is getting
closer to how the final process should look, though more work needs to
be done to implement the configuration all the way through.
Index: httpd
===================================================================
RCS file: /cvsroot/webapps-common/webapps-common/internal/httpd,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- httpd 31 Mar 2006 07:04:55 -0000 1.5
+++ httpd 5 Apr 2006 07:30:00 -0000 1.6
@@ -146,3 +146,30 @@
fi
done
}
+
+# wc_httpd_configured_vhosts: output a list of configured vhosts
+# usage:
+# wc_httpd_configured_vhosts httpd [vhost1 vhost2...]
+#
+wc_httpd_configured_vhosts(){
+ local httpd vhost_list
+ httpd="$1"
+ case $httpd in
+ apache2)
+ vhost_list=`find /etc/apache2/sites-enabled -type f \
+ -exec grep -iE '[[:space:]]*<VirtualHost[[:space:]]' \; | \
+ sed -e 's,[[:space:]]*<VirtualHost[[:space:]]*,,' \
+ -e 's,[[:space:]]*>.*$,,'`
+ ;;
+ *)
+ echo "you must provide a httpd to list vhosts for">&2;
+ return 1
+ ;;
+ *)
+ # XXX
+ _wc_log "listing vhosts for $httpd is currently not supported"
+ ;;
+ esac
+ vhost_list=`_wc_list_create $vhost_list`
+ echo $vhost_list
+}
- Previous message: [Webapps-common-discuss] webapps-common/doc Makefile, 1.3,
1.4 PHP-Policy-Manual-DRAFT.sgml, 1.5,
1.6 Webapps-Policy-Manual-DRAFT.sgml, 1.19, 1.20
- Next message: [Webapps-common-discuss] webapps-common/debian changelog, 1.9,
1.10 webapps-common.templates, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Webapps-common-discuss
mailing list