docker-run.sh 662 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. cd /opt/mautrix-instagram
  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_instagram -g -c /data/config.yaml -r /data/registration.yaml
  13. echo "Didn't find a registration file."
  14. echo "Generated one for you."
  15. echo "Copy that over to synapses app service directory."
  16. exit
  17. fi
  18. exec python3 -m mautrix_instagram -c /data/config.yaml