docker-run.sh 523 B

123456789101112131415161718
  1. #!/bin/sh
  2. cd /opt/mautrix-signal
  3. if [ ! -f /data/config.yaml ]; then
  4. cp example-config.yaml /data/config.yaml
  5. echo "Didn't find a config file."
  6. echo "Copied default config file to /data/config.yaml"
  7. echo "Modify that config file to your liking."
  8. echo "Start the container again after that to generate the registration file."
  9. exit
  10. fi
  11. if [ ! -f /data/registration.yaml ]; then
  12. python3 -m mautrix_signal -g -c /data/config.yaml -r /data/registration.yaml
  13. exit
  14. fi
  15. exec python3 -m mautrix_signal -c /data/config.yaml