comms: add Element host-config entrypoint script
This commit is contained in:
parent
ebb300b939
commit
578ef5e830
@ -383,16 +383,14 @@ spec:
|
|||||||
participant_limit: 16
|
participant_limit: 16
|
||||||
brand: Othrys Call
|
brand: Othrys Call
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
- name: element-config-host
|
- name: element-host-config
|
||||||
configMap:
|
configMap:
|
||||||
name: othrys-element-element-web
|
name: othrys-element-host-config
|
||||||
items:
|
defaultMode: 0555
|
||||||
- key: config.json
|
|
||||||
path: config.live.bstein.dev.json
|
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: element-config-host
|
- name: element-host-config
|
||||||
mountPath: /tmp/element-web-config/config.live.bstein.dev.json
|
mountPath: /docker-entrypoint.d/20-host-config.sh
|
||||||
subPath: config.live.bstein.dev.json
|
subPath: 20-host-config.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
@ -63,6 +63,11 @@ configMapGenerator:
|
|||||||
- bot.py=scripts/atlasbot/bot.py
|
- bot.py=scripts/atlasbot/bot.py
|
||||||
options:
|
options:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
- name: othrys-element-host-config
|
||||||
|
files:
|
||||||
|
- 20-host-config.sh=scripts/element-host-config.sh
|
||||||
|
options:
|
||||||
|
disableNameSuffixHash: true
|
||||||
- name: atlas-kb
|
- name: atlas-kb
|
||||||
files:
|
files:
|
||||||
- INDEX.md=knowledge/INDEX.md
|
- 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