mirror of
https://github.com/element-hq/element-docker-demo.git
synced 2026-01-25 22:37:00 +03:00
14 lines
400 B
Bash
Executable File
14 lines
400 B
Bash
Executable File
#!/usr/bin/ash
|
|
|
|
# a replacement entrypoint script for the MAS docker image which generates default config & secrets if needed.
|
|
# N.B. NOT USED CURRENTLY AS THE MAS IMAGE HAS NO SHELL
|
|
|
|
|
|
if [[ -f /data/config.yaml ]]
|
|
then
|
|
echo "MAS config found - not generating default"
|
|
exit 0
|
|
fi
|
|
|
|
echo "MAS config not found - generating default for secrets"
|
|
exec mas-cli config generate -o /data/config.yaml.default |