A tool for generating Apache vhost configs from a table modeled after actor.org_unit_setting.
USAGE: ./opac_settings.pl --bootstrap /openils/conf/opensrf_core.xml --schema m_sage
Input will look like this:
evergreen=# select * from m_sage.opac_settings where org_unit = 107;
id | org_unit | name | value
-----+----------+-------------------+-----------------------------------
36 | 107 | opac.server_name | "conhs.sage.eou.edu"
93 | 107 | opac.server_alias | "www.conhs.sage.eou.edu"
147 | 107 | opac.directory | "condonhs"
251 | 107 | opac.ssl_cert | "ssl/wildcard.sage.eou.edu.crt"
301 | 107 | opac.ssl_key | "ssl/wildcard.sage.eou.edu.key"
Multiple libraries may share an 'opac.directory' (branches of a system with the same OPAC look and feel).
Multiple 'opac.server_alias' rows may be defined.