[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ next ]


webbapps-common developer documentation
Chapter 5 - Appendix - Variables and Options


5.1 Maintainer script hook variables

The following list documents variables that you can set in your maintainer scripts to influence the behaviour of webapps-common.

wc_website_documentroot (used in: postinst)

set to override the documentroot for your web application (defaults to /usr/share/$wc_package/www)

wc_multiple_instances (used in: config)

set to any non-empty string to specify that this application supports running on multiple instances. note that this is still kind of experimental.

wc_dbtype/wc_dbtypes (used in: config, postinst, prerm, postrm)

if your application requires a database, the database type(s). if using the latter, the list of supported database types should be comma-separated.


5.2 Configuration template substitution variables.

The following list documents the substituion variables which will be expanded by webapps-common when generating web-server configuration files.

_WC_DOCROOT_DIRECTIVE_

expands to either Alias or DocumentRoot, depending on how the package is being configured.

_WC_WEBSITE_SUBDIRECTORY_

expands to the subdirectory from which the application is configured to be externally accessed.

_WC_WEBSITE_HOSTNAME_

expands to the name of the host on which the application is configured. TODO: what happens for default/global installs?


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ next ]


webbapps-common developer documentation

$Revision: 133 $

Sean Finney