diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-27 17:16:28 +0100 |
---|---|---|
committer | Sam Pearson <sam@sgp.me.uk> | 2018-09-28 14:35:46 +0100 |
commit | d5aeacbfeca3b9f07ff846dcb6f877ac4e59095f (patch) | |
tree | d440311c262d4aa300a5abe002dc788874e6296e /bin/docker-cobrand | |
parent | d84af0f71aeef0581224c84d74c0372ff0a59877 (diff) |
[Docker] Support for cobrands
This adds a script for loading cobrands into an instance of the
FixMyStreet Docker container.
A directory containing the necessary module, templates, css, etc
should be mapped into the container at `/var/www/fixmystreet/cobrand`
and activated by adding the cobrand to `ALLOWED_COBRANDS` as usual.
See the documentation at https://fixmystreet.org/install/docker
for more details.
Diffstat (limited to 'bin/docker-cobrand')
-rwxr-xr-x | bin/docker-cobrand | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/docker-cobrand b/bin/docker-cobrand new file mode 100755 index 000000000..05c02c1ce --- /dev/null +++ b/bin/docker-cobrand @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e +shopt -s nullglob + +LN_FLAGS="-s -f -v" +cobrand="/var/www/fixmystreet/cobrand" +FMS="/var/www/fixmystreet/fixmystreet" + +PATHS=(perllib/FixMyStreet/Cobrand templates/web templates/email web/cobrands conf) + +for path in "${PATHS[@]}"; do + for c in $cobrand/$path/*; do + ln $LN_FLAGS $c $FMS/$path + done +done |