A tool for generating Apache vhost configs from a table modeled after actor.org_unit_...
authorBen Ostrowsky <ben@esilibrary.com>
Mon, 8 Nov 2010 16:51:27 +0000 (16:51 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Jul 2012 15:29:48 +0000 (11:29 -0400)
commit0fa1a558d8a86e9996d1c754ffeaab28faa55290
tree77c3b9465683551d4a7c83c207d98d3594364f52
parent7eaca0872b3ffe4e0da0deae04cc11b15c19ce32
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.
opac_settings.pl [new file with mode: 0755]