comms: add Element host-config entrypoint script
This commit is contained in:
parent
ebb300b939
commit
578ef5e830
@ -383,16 +383,14 @@ spec:
|
||||
participant_limit: 16
|
||||
brand: Othrys Call
|
||||
extraVolumes:
|
||||
- name: element-config-host
|
||||
- name: element-host-config
|
||||
configMap:
|
||||
name: othrys-element-element-web
|
||||
items:
|
||||
- key: config.json
|
||||
path: config.live.bstein.dev.json
|
||||
name: othrys-element-host-config
|
||||
defaultMode: 0555
|
||||
extraVolumeMounts:
|
||||
- name: element-config-host
|
||||
mountPath: /tmp/element-web-config/config.live.bstein.dev.json
|
||||
subPath: config.live.bstein.dev.json
|
||||
- name: element-host-config
|
||||
mountPath: /docker-entrypoint.d/20-host-config.sh
|
||||
subPath: 20-host-config.sh
|
||||
readOnly: true
|
||||
|
||||
ingress:
|
||||
|
||||
@ -63,6 +63,11 @@ configMapGenerator:
|
||||
- bot.py=scripts/atlasbot/bot.py
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- name: othrys-element-host-config
|
||||
files:
|
||||
- 20-host-config.sh=scripts/element-host-config.sh
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- name: atlas-kb
|
||||
files:
|
||||
- INDEX.md=knowledge/INDEX.md
|
||||
|
||||
9
services/comms/scripts/element-host-config.sh
Normal file
9
services/comms/scripts/element-host-config.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
HOST_CONFIG="/tmp/element-web-config/config.live.bstein.dev.json"
|
||||
BASE_CONFIG="/tmp/element-web-config/config.json"
|
||||
|
||||
if [[ -f "$BASE_CONFIG" ]]; then
|
||||
cp -f "$BASE_CONFIG" "$HOST_CONFIG"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user